OSDN Git Service

fix search order
authorISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Wed, 31 Oct 2012 02:20:28 +0000 (11:20 +0900)
committerISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Wed, 31 Oct 2012 02:20:28 +0000 (11:20 +0900)
lib/Mubot4FB.pm

index 6c758c6..b9a4b70 100644 (file)
@@ -141,7 +141,7 @@ sub _search_next {
 
        my $resp_msg = 'ないっす';
        if (defined $me->{last_search}->{$args->{who}}) {
-               my $ent = pop($me->{last_search}->{$args->{who}});
+               my $ent = shift($me->{last_search}->{$args->{who}});
                if ($ent) {
                        my $count = @{$me->{last_search}->{$args->{who}}};
                        if ($count) {