changeset 100:86772af940ce

fixed the notification of incoming messages for wasser and identica
author mikanbako <maoutwo@gmail.com>
date Fri, 11 Jul 2008 14:01:20 +0900
parents e460e1978ca3
children ceabb8099bf3
files pidgin-twitter.c
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin-twitter.c	Thu Jul 10 20:26:22 2008 +0900
+++ b/pidgin-twitter.c	Fri Jul 11 14:01:20 2008 +0900
@@ -1113,6 +1113,12 @@
     twitter_debug("called\n");
     twitter_debug("buffer = %s suppress_oops = %d\n", *buffer, suppress_oops);
 
+    if(is_twitter_conv(conv) || is_wassr_conv(conv) || is_identica_conv(conv)) {
+        /* suppress notification of incoming messages. */
+        if(purple_prefs_get_bool(OPT_PREVENT_NOTIFICATION))
+            *flags |= PURPLE_MESSAGE_SYSTEM;
+    }
+
     /* quick hack to suppress annoying completion message from wassr */
     if(is_wassr_conv(conv)) {
         if(strstr(*buffer, "<body>投稿完了:") ||
@@ -1133,11 +1139,6 @@
         return FALSE;
     }
 
-    /* suppress notification of incoming messages. */
-    if(purple_prefs_get_bool(OPT_PREVENT_NOTIFICATION)) {
-        *flags |= PURPLE_MESSAGE_SYSTEM;
-    }
-
     if(!suppress_oops || !purple_prefs_get_bool(OPT_SUPPRESS_OOPS))
         return FALSE;