Mercurial > pidgin.yaz
changeset 13899:79f29d8dcd7a
[gaim-migrate @ 16384]
Workaround for silc toolkit "bug" that prevents empty unix account real
names from connecting.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 01 Jul 2006 15:20:58 +0000 |
parents | a1b99fa5faa1 |
children | 47c3d00713af |
files | src/protocols/silc/silc.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/silc/silc.c Sat Jul 01 06:18:11 2006 +0000 +++ b/src/protocols/silc/silc.c Sat Jul 01 15:20:58 2006 +0000 @@ -268,6 +268,7 @@ GaimConnection *gc; char pkd[256], prd[256]; const char *cipher, *hmac; + char *realname; int i; gc = account->gc; @@ -298,11 +299,16 @@ client->username = silc_get_username(); gaim_account_set_username(account, client->username); } + realname = silc_get_real_name(); if (gaim_account_get_user_info(account)) { client->realname = strdup(gaim_account_get_user_info(account)); + free(realname); + } else if ((silc_get_real_name() != NULL) && (*realname != '\0')) { + client->realname = realname; + gaim_account_set_user_info(account, client->realname); } else { - client->realname = silc_get_real_name(); - gaim_account_set_user_info(account, client->realname); + free(realname); + client->realname = strdup(_("Gaim User")); } client->hostname = silc_net_localhost();