cpw.qulogic.msnp16: 040f73ee: Fix some inverted logic that prevented u...

qulogic at pidgin.im qulogic at pidgin.im
Mon Dec 14 02:26:59 EST 2009


-----------------------------------------------------------------
Revision: 040f73ee06fdd19f6321c3dbd2ab760a9be3feef
Ancestor: e67fc1b6eccb8879246c1f55a677c5a7202372f8
Author: qulogic at pidgin.im
Date: 2009-12-14T03:26:44
Branch: im.pidgin.cpw.qulogic.msnp16
URL: http://d.pidgin.im/viewmtn/revision/info/040f73ee06fdd19f6321c3dbd2ab760a9be3feef

Modified files:
        libpurple/protocols/msn/switchboard.c

ChangeLog: 

Fix some inverted logic that prevented us from starting conversations.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/switchboard.c	d2682c0c6b52e4255298ac27a2d25545ddcbeb0d
+++ libpurple/protocols/msn/switchboard.c	8a0eccb1cf54daba1c8f102c45c4d3e68c4974c4
@@ -959,11 +959,11 @@ connect_cb(MsnServConn *servconn)
 	g_return_if_fail(swboard != NULL);
 
 	if (servconn->session->protocol_ver >= 16)
-		username = g_strdup(purple_account_get_username(account));
-	else
 		username = g_strdup_printf("%s;{%s}",
 		                           purple_account_get_username(account),
 		                           servconn->session->guid);
+	else
+		username = g_strdup(purple_account_get_username(account));
 
 	if (msn_switchboard_is_invited(swboard))
 	{


More information about the Commits mailing list