diff options
author | doy <doy@tozt.net> | 2009-01-25 15:22:04 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-01-25 15:22:04 -0500 |
commit | 7f8a679ab1be5fcc130b996c44fcc64531046521 (patch) | |
tree | 70848d4b55c60085f7cd4ce56b5d964710d52337 /lib/Bot/Games.pm | |
parent | efb9aefaccfe585784063995714904854beb60cf (diff) | |
download | bot-games-7f8a679ab1be5fcc130b996c44fcc64531046521.tar.gz bot-games-7f8a679ab1be5fcc130b996c44fcc64531046521.zip |
since i'm calling ->execute explicitly now, can move the pass_args stuff out to the command role
Diffstat (limited to 'lib/Bot/Games.pm')
-rw-r--r-- | lib/Bot/Games.pm | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm index 8dfe257..b5a215e 100644 --- a/lib/Bot/Games.pm +++ b/lib/Bot/Games.pm @@ -69,13 +69,8 @@ sub said { # 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) { - $say->($method_meta->execute($game, $arg, - {player => $args->{who}})); - } - else { - $say->($method_meta->execute($game)); - } + $say->($method_meta->execute($game, $arg, + {player => $args->{who}})); } else { $say->("Unknown command $action for game $game_name"); |