cpw.qulogic.msnp16: 9d790d91: Don't add ourselves to our own conversat...

qulogic at pidgin.im qulogic at pidgin.im
Tue Dec 15 04:02:12 EST 2009


-----------------------------------------------------------------
Revision: 9d790d910d07560ea36e37f049d1252632b4a51d
Ancestor: 9115475787375850b563a1ec0b2007eaa463483e
Author: qulogic at pidgin.im
Date: 2009-12-15T00:13:49
Branch: im.pidgin.cpw.qulogic.msnp16
URL: http://d.pidgin.im/viewmtn/revision/info/9d790d910d07560ea36e37f049d1252632b4a51d

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

ChangeLog: 

Don't add ourselves to our own conversation.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/switchboard.c	5c21cdf14376ced1f450de522dd8e1209e06191a
+++ libpurple/protocols/msn/switchboard.c	d486352c3e0b5245cac24a5c7c21ddcd34be154d
@@ -243,6 +243,12 @@ msn_switchboard_add_user(MsnSwitchBoard 
 		return;
 	}
 
+	/* Don't add ourselves either... */
+	if (g_str_equal(passport, purple_account_get_username(account))) {
+		g_free(passport);
+		return;
+	}
+
 	swboard->users = g_list_prepend(swboard->users, passport);
 	swboard->current_users++;
 	swboard->empty = FALSE;


More information about the Commits mailing list