libpurple/protocols/msn/msg.c

branch
soc.2013.gobjectification.plugins
changeset 37148
50f361d39a1e
parent 37135
6271bcdee576
parent 36092
cf0a11121049
child 37158
96b5ab42da00
--- a/libpurple/protocols/msn/msg.c	Tue May 20 10:59:21 2014 +0530
+++ b/libpurple/protocols/msn/msg.c	Sat May 24 02:32:01 2014 +0530
@@ -702,8 +702,8 @@
 				purple_debug_misc("msn", "plain_msg: current_users(%d)\n",
 								swboard->current_users);
 
-			purple_serv_got_chat_in(gc, swboard->chat_id, passport, 0, body_final,
-							 time(NULL));
+			purple_serv_got_chat_in(gc, swboard->chat_id, passport,
+				PURPLE_MESSAGE_RECV, body_final, time(NULL));
 			if (swboard->conv == NULL)
 			{
 				swboard->conv = PURPLE_CONVERSATION(purple_conversations_find_chat(gc, swboard->chat_id));
@@ -1162,10 +1162,9 @@
 							"invite, which is not yet "
 							"supported."), from);
 				if (buf) {
-					purple_conversation_write(PURPLE_CONVERSATION(im), NULL, buf,
-							PURPLE_MESSAGE_SYSTEM |
-							PURPLE_MESSAGE_NOTIFY,
-							time(NULL));
+					purple_conversation_write_system_message(
+						PURPLE_CONVERSATION(im), buf,
+						PURPLE_MESSAGE_NOTIFY);
 					g_free(buf);
 				}
 			}

mercurial