| 181 unalert(conv); |
181 unalert(conv); |
| 182 return 0; |
182 return 0; |
| 183 } |
183 } |
| 184 |
184 |
| 185 static gboolean |
185 static gboolean |
| 186 message_displayed_cb(PurpleAccount *account, const char *who, char *message, |
186 message_displayed_cb(PurpleConversation *conv, PurpleMessage *msg, gpointer _unused) |
| 187 PurpleConversation *conv, PurpleMessageFlags flags) |
187 { |
| 188 { |
188 PurpleMessageFlags flags = purple_message_get_flags(msg); |
| |
189 |
| 189 if ((PURPLE_IS_CHAT_CONVERSATION(conv) && alert_chat_nick && |
190 if ((PURPLE_IS_CHAT_CONVERSATION(conv) && alert_chat_nick && |
| 190 !(flags & PURPLE_MESSAGE_NICK))) |
191 !(flags & PURPLE_MESSAGE_NICK))) |
| 191 return FALSE; |
192 return FALSE; |
| 192 |
193 |
| 193 if ((flags & PURPLE_MESSAGE_RECV) && !(flags & PURPLE_MESSAGE_DELAYED)) |
194 if ((flags & PURPLE_MESSAGE_RECV) && !(flags & PURPLE_MESSAGE_DELAYED)) |