Index: Dev/twitter/twitterbot.pl
===================================================================
--- Dev/twitter/twitterbot.pl	(revision 641934fed10bc9bc8c4b4f2e0c00f0c184a2802c)
+++ Dev/twitter/twitterbot.pl	(revision 702399e09a32025f7dfed289735b064361263a6b)
@@ -49,14 +49,15 @@
     # $tweets->{$id}{type} eq 'search'  => found by search API
     #                      eq 'mention' => found by mention API
+    my $skip;
     if ($tweets->{$id}{type} eq 'retweet') {
         DEBUG and warn "skipping $id that was already retweeted\n";
-        next;
+        $skip = $id;
     }
     if (defined $conf->{allow}) {
-        my $flag;
+        $skip = $id;
         foreach my $screen_name ( @{ $conf->{allow}{screen_name} } ) {
             if ($tweets->{$id}{screen_name} eq $screen_name) {
                 DEBUG and warn "$id was allowed by screen_name\n";
-                $flag = $id;
+                undef $skip;
                 last;
             }
@@ -65,11 +66,12 @@
             if ($tweets->{$id}{user_id} eq $user_id) {
                 DEBUG and warn "$id was allowed by user_id\n";
-                $flag = $id;
+                undef $skip;
                 last;
             }
         }
-        if (! $flag) {
-            next;
-        }
+    }
+    
+    if ($skip) {
+        next;
     }
     
