soc.2010.detachablepurple: 6e408a08: Moved the RPC call for account creation ...

gillux at soc.pidgin.im gillux at soc.pidgin.im
Fri Jul 16 01:17:05 EDT 2010


----------------------------------------------------------------------
Revision: 6e408a08ec4a431d4d03611dddd5321565c00112
Parent:   ddbae5bbfdab41bdca80a3a9b08b3136283c6094
Author:   gillux at soc.pidgin.im
Date:     07/15/10 23:31:04
Branch:   im.pidgin.soc.2010.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/6e408a08ec4a431d4d03611dddd5321565c00112

Changelog: 

Moved the RPC call for account creation of clients in remote mode. This let
it locally check for accounts duplication. Actually we don't care if remotely
the daemon created a new account or returned an existing one. What's important
is we keep a sane account list.

Changes against parent ddbae5bbfdab41bdca80a3a9b08b3136283c6094

  patched  libpurple/account.c

-------------- next part --------------
============================================================
--- libpurple/account.c	668ca563fbff09092e578d4198d1bf411f19eb9c
+++ libpurple/account.c	ecaa8f45d2aac498ba5e10872637eca52e431717
@@ -826,15 +826,15 @@ purple_account_new(const char *username,
 	g_return_val_if_fail(username != NULL, NULL);
 	g_return_val_if_fail(protocol_id != NULL, NULL);
 
-	/* Handle remote mode case */
-	if (purple_core_is_remote_mode())
-		return purple_account_new_RPC(username, protocol_id);
-
 	account = purple_accounts_find(username, protocol_id);
 
 	if (account != NULL)
 		return account;
 
+	/* Handle remote mode case */
+	if (purple_core_is_remote_mode())
+		return purple_account_new_RPC(username, protocol_id);
+
 	prpl = purple_find_prpl(protocol_id);
 	g_return_val_if_fail(prpl != NULL, NULL);
 


More information about the Commits mailing list