diff options
-rw-r--r-- | lib/IM/Engine/Plugin/Commands.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IM/Engine/Plugin/Commands.pm b/lib/IM/Engine/Plugin/Commands.pm index e13c502..b18527d 100644 --- a/lib/IM/Engine/Plugin/Commands.pm +++ b/lib/IM/Engine/Plugin/Commands.pm @@ -177,7 +177,7 @@ around commands => sub { sub command_list { my $self = shift; - return sort map { s/.*:://; lc } $self->commands; + return (sort map { (my $cmd = $_) =~ s/.*:://; lc($cmd) } $self->commands); } sub is_command { |