changeset 271:7aad61f56c48

someone broke parrot blocker. yes, it's me!
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 12 Dec 2008 20:23:24 +0900
parents 06bbde51018e
children 2f053c23ee50
files main.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Fri Dec 12 18:22:21 2008 +0900
+++ b/main.c	Fri Dec 12 20:23:24 2008 +0900
@@ -93,17 +93,21 @@
 #endif
         plain = tmp;
 
-    if(wassr_service) {
+    switch(service) {
+    case wassr_service:
         /* store sending message to address parrot problem */
         wassr_parrot_list =
             g_list_prepend(wassr_parrot_list, g_strdup(plain));
         twitter_debug("wassr parrot pushed:%s\n", plain);
-    }
-    else if(identica_service) {
+        break;
+    case identica_service:
         /* store sending message to address parrot problem */
         identica_parrot_list =
             g_list_prepend(identica_parrot_list, g_strdup(plain));
         twitter_debug("identica parrot pushed:%s\n", plain);
+        break;
+    default:
+        break;
     }
 
     g_free(*buffer);