OSDN Git Service

message format fix
authorISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Thu, 18 Oct 2012 06:23:12 +0000 (15:23 +0900)
committerISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Thu, 18 Oct 2012 06:23:12 +0000 (15:23 +0900)
mubot4fb.pl

index a2ecbd9..abe3187 100755 (executable)
@@ -159,7 +159,7 @@ sub _fb_delete {
 sub _format_submit {
        my ($me, $e) = @_;
 
-       return decode('utf8', $e->{submitter}).'ã\81\8cã\80\8c'.decode('utf8', $e->{prefix}).' '.decode('utf8', $e->{uri}).' '.decode('utf8', $e->{suffix}).'ã\80\8dと'.strftime('%Y-%m-%d %H:%M:%S', localtime($e->{post_time}));
+       return decode('utf8', $e->{submitter}).'ã\81\8cã\80\8e'.decode('utf8', $e->{prefix}).' '.decode('utf8', $e->{uri}).' '.decode('utf8', $e->{suffix}).'ã\80\8fと'.strftime('%Y-%m-%d %H:%M:%S', localtime($e->{post_time}));
 }
 
 sub _response {
@@ -253,7 +253,7 @@ sub _search_next {
                        my $count = @{$me->{last_search}->{$args->{who}}};
                        if ($count) {
                        }
-                       $resp_msg = $args->{who} . ': ' . $me->_format_submit($ent).'に言ってた'.($count ? '[ほか'.$count.'件] ' : '[ほかにはもうないよ] ').$me->_fb_post_uri($ent->{fb_post_id});
+                       $resp_msg = $args->{who} . ': ' . $me->_format_submit($ent).'に言ってた'.($count ? ' [ほか'.$count.'件] ' : '[ほかにはもうないよ] ').$me->_fb_post_uri($ent->{fb_post_id});
                }
        }
        return $resp_msg;