src/account.c

changeset 7956
21d891f33b89
parent 7755
a08288ab4e5f
child 8046
c581b20a47d6
--- a/src/account.c	Mon Dec 29 08:59:22 2003 +0000
+++ b/src/account.c	Mon Dec 29 09:03:47 2003 +0000
@@ -137,10 +137,7 @@
 
 	gaim_account_set_username(account, username);
 
-	if(protocol_id)
-		gaim_account_set_protocol_id(account, protocol_id);
-	else
-		gaim_account_set_protocol(account, GAIM_PROTO_DEFAULT);
+	gaim_account_set_protocol_id(account, protocol_id ? protocol_id : GAIM_PROTO_DEFAULT);
 
 	account->settings = g_hash_table_new_full(g_str_hash, g_str_equal,
 											  g_free, delete_setting);

mercurial