Mercurial > pidgin
diff src/account.c @ 9971:ab5db2c5da79
[gaim-migrate @ 10882]
Remove the default prpl, patch from datallah
Patch from nosnilmot that might make recent buddies work
Someone check my get_proto_smileys function. I feel like it could be better
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 08 Sep 2004 02:33:53 +0000 |
parents | e4a27c9aec4c |
children | d770673338f4 |
line wrap: on
line diff
--- a/src/account.c Wed Sep 08 02:15:18 2004 +0000 +++ b/src/account.c Wed Sep 08 02:33:53 2004 +0000 @@ -128,9 +128,9 @@ GaimAccount *account = NULL; g_return_val_if_fail(username != NULL, NULL); + g_return_val_if_fail(protocol_id != NULL, NULL); - if (protocol_id != NULL) - account = gaim_accounts_find(username, protocol_id); + account = gaim_accounts_find(username, protocol_id); if (account != NULL) return account; @@ -139,8 +139,7 @@ gaim_account_set_username(account, username); - gaim_account_set_protocol_id(account, - (protocol_id ? protocol_id : GAIM_PROTO_DEFAULT)); + gaim_account_set_protocol_id(account, protocol_id); account->settings = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, delete_setting);