soc.2010.msn-tlc: a95c8c31: Don't treat messages got from ourself fr...

masca at cpw.pidgin.im masca at cpw.pidgin.im
Wed May 26 16:01:16 EDT 2010


-----------------------------------------------------------------
Revision: a95c8c315e1110ef7d9ee619ddf3ab101bf7fa08
Ancestor: 65ec814b454bf8e5e79ae31c26f71759639e9256
Author: masca at cpw.pidgin.im
Date: 2010-05-26T03:16:48
Branch: im.pidgin.soc.2010.msn-tlc
URL: http://d.pidgin.im/viewmtn/revision/info/a95c8c315e1110ef7d9ee619ddf3ab101bf7fa08

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

ChangeLog: 

Don't treat messages got from ourself from a switchboard like a new message. This fixes the multiple conversation open with ourself.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msg.c	33a741a6f43c70d7f00783b7bcb6a68a7dc6476d
+++ libpurple/protocols/msn/msg.c	7d7a29d9e204278bfad7ea7066793cf2ef452ecd
@@ -883,8 +883,9 @@ msn_plain_msg(MsnCmdProc *cmdproc, MsnMe
 				swboard->flag |= MSN_SB_FLAG_IM;
 			}
 		}
-		else
+		else if (!g_str_equal(passport, purple_account_get_username(gc->account)))
 		{
+			/* Don't im ourselves ... */
 			serv_got_im(gc, passport, body_final, 0, time(NULL));
 			if (swboard->conv == NULL)
 			{


More information about the Commits mailing list