summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-01-25 01:47:21 -0500
committerdoy <doy@tozt.net>2009-01-25 01:47:21 -0500
commit5568b19423752e0ef2f07c766392d517f1d609d0 (patch)
treec4de65255b7c255de0a1a8ce5bee9d54cc692543
parent72af015df49a30bd8e4f72e4926a7ffb5d1eddd3 (diff)
downloadbot-games-5568b19423752e0ef2f07c766392d517f1d609d0.tar.gz
bot-games-5568b19423752e0ef2f07c766392d517f1d609d0.zip
comment
-rw-r--r--lib/Bot/Games.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm
index aef9a18..03e494f 100644
--- a/lib/Bot/Games.pm
+++ b/lib/Bot/Games.pm
@@ -65,6 +65,8 @@ sub said {
if ($action =~ /^-(\w+)\s*(.*)/) {
my ($action, $arg) = ($1, $2);
+ # XXX: maybe the meta stuff should get pushed out into the plugins
+ # themselves, and this should become $game->meta->get_command or so?
if (my $method_meta = _get_command($game, $action)) {
if ($method_meta->pass_args) {
$output = $method_meta->execute($game, $arg, {player => $args->{who}});