changeset 31116:17ee21b062f9

Don't add ourselves to our own conversation.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Tue, 15 Dec 2009 00:13:49 +0000
parents e9c6be9e0ddf
children ccae0fa9622f
files libpurple/protocols/msn/switchboard.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/switchboard.c	Mon Dec 14 23:44:51 2009 +0000
+++ b/libpurple/protocols/msn/switchboard.c	Tue Dec 15 00:13:49 2009 +0000
@@ -243,6 +243,12 @@
 		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;