Mercurial > pidgin
diff libpurple/protocols/yahoo/libymsg.c @ 29306:9bc902d88fa2
Fix compilation error
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Sun, 15 Nov 2009 21:03:10 +0000 |
parents | 40b523845a6e |
children | 9198a5d39c5c |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/libymsg.c Sun Nov 15 20:48:30 2009 +0000 +++ b/libpurple/protocols/yahoo/libymsg.c Sun Nov 15 21:03:10 2009 +0000 @@ -1116,12 +1116,17 @@ 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);