Mercurial > pidgin-twitter
comparison pidgin-twitter.c @ 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 |
comparison
equal
deleted
inserted
replaced
98:e460e1978ca3 | 100:86772af940ce |
---|---|
1111 PurpleConversation *conv, PurpleMessageFlags *flags, void *data) | 1111 PurpleConversation *conv, PurpleMessageFlags *flags, void *data) |
1112 { | 1112 { |
1113 twitter_debug("called\n"); | 1113 twitter_debug("called\n"); |
1114 twitter_debug("buffer = %s suppress_oops = %d\n", *buffer, suppress_oops); | 1114 twitter_debug("buffer = %s suppress_oops = %d\n", *buffer, suppress_oops); |
1115 | 1115 |
1116 if(is_twitter_conv(conv) || is_wassr_conv(conv) || is_identica_conv(conv)) { | |
1117 /* suppress notification of incoming messages. */ | |
1118 if(purple_prefs_get_bool(OPT_PREVENT_NOTIFICATION)) | |
1119 *flags |= PURPLE_MESSAGE_SYSTEM; | |
1120 } | |
1121 | |
1116 /* quick hack to suppress annoying completion message from wassr */ | 1122 /* quick hack to suppress annoying completion message from wassr */ |
1117 if(is_wassr_conv(conv)) { | 1123 if(is_wassr_conv(conv)) { |
1118 if(strstr(*buffer, "<body>投稿完了:") || | 1124 if(strstr(*buffer, "<body>投稿完了:") || |
1119 strstr(*buffer, "<body>チャンネル投稿完了:")) { | 1125 strstr(*buffer, "<body>チャンネル投稿完了:")) { |
1120 twitter_debug("clearing sender and buffer\n"); | 1126 twitter_debug("clearing sender and buffer\n"); |
1129 } | 1135 } |
1130 } | 1136 } |
1131 | 1137 |
1132 if(!is_twitter_conv(conv)) { | 1138 if(!is_twitter_conv(conv)) { |
1133 return FALSE; | 1139 return FALSE; |
1134 } | |
1135 | |
1136 /* suppress notification of incoming messages. */ | |
1137 if(purple_prefs_get_bool(OPT_PREVENT_NOTIFICATION)) { | |
1138 *flags |= PURPLE_MESSAGE_SYSTEM; | |
1139 } | 1140 } |
1140 | 1141 |
1141 if(!suppress_oops || !purple_prefs_get_bool(OPT_SUPPRESS_OOPS)) | 1142 if(!suppress_oops || !purple_prefs_get_bool(OPT_SUPPRESS_OOPS)) |
1142 return FALSE; | 1143 return FALSE; |
1143 | 1144 |