diff libpurple/protocols/jabber/message.c @ 29408:1d58c44c87f4

Oops, that wasn't meant to be left in as a warning, but noting these is probably good.
author Paul Aurich <paul@darkrain42.org>
date Wed, 10 Feb 2010 06:43:51 +0000
parents b676cb5b4595
children 97974856c920
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c	Wed Feb 10 06:01:58 2010 +0000
+++ b/libpurple/protocols/jabber/message.c	Wed Feb 10 06:43:51 2010 +0000
@@ -86,8 +86,10 @@
 		PurpleConversation *conv;
 
 		conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, jm->from, account);
-		if (conv)
+		if (conv && !g_str_equal(jm->from, purple_conversation_get_name(conv))) {
+			purple_debug_info("jabber", "Binding conversation to %s\n", jm->from);
 			purple_conversation_set_name(conv, jm->from);
+		}
 	}
 
 	if(!jm->xhtml && !jm->body) {