summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-04-26 23:49:23 -0500
committerdoy <doy@tozt.net>2009-04-26 23:49:23 -0500
commit13c3bb1f47c5b019e853587c7da881026ce22d93 (patch)
treed10a25b245451e11232bcb7a3e0c76cd53f8f771
parent5575d6e66359f5231091a10c9f3169686ec23bd2 (diff)
downloadbot-games-13c3bb1f47c5b019e853587c7da881026ce22d93.tar.gz
bot-games-13c3bb1f47c5b019e853587c7da881026ce22d93.zip
need to return an arrayref, since the output code still assumes single value returns
-rw-r--r--lib/Bot/Games/Game.pm2
1 files changed, 1 insertions, 1 deletions
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;