cpw.attention_ui: b5fc4772: Fix compilation error

malu at pidgin.im malu at pidgin.im
Sun Nov 15 16:06:59 EST 2009


-----------------------------------------------------------------
Revision: b5fc47725420cb03a8df1fbfe1bc722e866c9278
Ancestor: ebafa26d1332a7b6c5891a6252479f05d11be911
Author: malu at pidgin.im
Date: 2009-11-15T21:03:10
Branch: im.pidgin.cpw.attention_ui
URL: http://d.pidgin.im/viewmtn/revision/info/b5fc47725420cb03a8df1fbfe1bc722e866c9278

Modified files:
        libpurple/protocols/yahoo/libymsg.c

ChangeLog: 

Fix compilation error

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/libymsg.c	b3a4a746b4474113eea332771e4e794469dd3dab
+++ libpurple/protocols/yahoo/libymsg.c	e5f1110f206bdc9a8155166851cf64bf970fcbb9
@@ -1116,12 +1116,17 @@ static void yahoo_process_message(Purple
 		m = m2;
 		purple_util_chrreplace(m, '\r', '\n');
 		if (!strcmp(m, "<ding>")) {
+			PurpleConversation *conv = NULL;
 			char *username;
 
 			username = g_markup_escape_text(im->fed_from, -1);
+			conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY,
+				username, account);
 			purple_prpl_got_attention(gc, username, YAHOO_BUZZ);
-			purple_conversation_attention(c, username, 0, PURPLE_MESSAGE_RECV,
-				time(NULL));
+			if (conv) {
+				purple_conversation_attention(conv, username, 0, PURPLE_MESSAGE_RECV,
+					time(NULL));
+			}
 			g_free(username);
 			g_free(m);
 			g_free(im->fed_from);


More information about the Commits mailing list