From 13c3bb1f47c5b019e853587c7da881026ce22d93 Mon Sep 17 00:00:00 2001 From: doy Date: Sun, 26 Apr 2009 23:49:23 -0500 Subject: need to return an arrayref, since the output code still assumes single value returns --- lib/Bot/Games/Game.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bot/Games/Game.pm b/lib/Bot/Games/Game.pm index 8af0baf..705817e 100644 --- a/lib/Bot/Games/Game.pm +++ b/lib/Bot/Games/Game.pm @@ -76,7 +76,7 @@ command cmdlist => sub { if $method->meta->can('does_role') && $method->meta->does_role('Bot::Games::Trait::Method::Command'); } - return @commands; + return \@commands; }, needs_init => 0, formatter => sub { my $list = shift; -- cgit v1.2.3-54-g00ecf