OSDN Git Service

tiny cleanup
authorISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Mon, 22 Oct 2012 03:25:56 +0000 (12:25 +0900)
committerISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Mon, 22 Oct 2012 03:25:56 +0000 (12:25 +0900)
mubot4fb.pl

index efb13bd..a94cdce 100755 (executable)
@@ -202,7 +202,6 @@ sub _response {
 
 sub _add {
        my ($me, $args)  =@_;
-       my $post_ok = 1;
        my ($resp, $resp_msg);
 
        if ($args->{body} =~ /$mu_re/) {
@@ -218,6 +217,7 @@ sub _add {
                                $resp_msg = '既に '.$me->_format_submit($res).'に言ってますよ? '.$me->{fb}->post_uri($res->{fb_post_id});
                        }
                } else {
+                       my $post_ok = 1;
                        eval{$resp = $me->{fb}->publish($text, $uri)};
                        if ($@) {
                                $me->fb_init();