changeset 101:ceabb8099bf3

merged
author mikanbako <maoutwo@gmail.com>
date Fri, 11 Jul 2008 19:25:55 +0900
parents 86772af940ce (diff) f207cc8da6cd (current diff)
children 55c466028d48
files pidgin-twitter.c
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin-twitter.c	Fri Jul 11 15:51:27 2008 +0900
+++ b/pidgin-twitter.c	Fri Jul 11 19:25:55 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;