cpw.attention_ui: 741fe71f: Don't treat attentions as normal message...

malu at pidgin.im malu at pidgin.im
Mon Nov 16 14:46:02 EST 2009


-----------------------------------------------------------------
Revision: 741fe71ff3f5408cc18e9d93b6e8cc3a25f54265
Ancestor: 40a9c7e81c19e9d7b52ec973cdf3962be885f6b9
Author: malu at pidgin.im
Date: 2009-11-16T19:43:36
Branch: im.pidgin.cpw.attention_ui
URL: http://d.pidgin.im/viewmtn/revision/info/741fe71ff3f5408cc18e9d93b6e8cc3a25f54265

Modified files:
        libpurple/prpl.c

ChangeLog: 

Don't treat attentions as normal messages, this avoids playing the normal
message received sound, not that attention has its own sound event

-------------- next part --------------
============================================================
--- libpurple/prpl.c	51904653ad0bee1750da2d5da7488590699cb774
+++ libpurple/prpl.c	337803529d283c92ca80f59d96526bfaee98b15e
@@ -471,7 +471,7 @@ got_attention(PurpleConnection *gc, int 
 	attn = purple_get_attention_type_from_code(gc->account, type_code);
 
 	/* PURPLE_MESSAGE_NOTIFY is for attention messages. */
-	flags = PURPLE_MESSAGE_SYSTEM | PURPLE_MESSAGE_NOTIFY | PURPLE_MESSAGE_RECV;
+	flags = PURPLE_MESSAGE_SYSTEM;
 
 	/* TODO: if (attn->icon_name) is non-null, use it to lookup an emoticon and display
 	 * it next to the attention command. And if it is null, display a generic icon. */


More information about the Commits mailing list