summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games.pm
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-01-16 01:19:46 -0500
committerdoy <doy@tozt.net>2009-01-16 01:19:46 -0500
commitab6e73e62b25f94694c15ae6ec0d9e1bd73bef35 (patch)
treee2ade217467adbe59af18b2322d88802b05d81c2 /lib/Bot/Games.pm
parent9c9ec9d5b18b1e3147080bef2b3a592a9800ec92 (diff)
downloadbot-games-ab6e73e62b25f94694c15ae6ec0d9e1bd73bef35.tar.gz
bot-games-ab6e73e62b25f94694c15ae6ec0d9e1bd73bef35.zip
initialization method is now just 'init'
Diffstat (limited to 'lib/Bot/Games.pm')
-rw-r--r--lib/Bot/Games.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm
index 40028fb..5e0e8e4 100644
--- a/lib/Bot/Games.pm
+++ b/lib/Bot/Games.pm
@@ -36,8 +36,8 @@ sub said {
if (!defined $game || !defined $action) {
$game = $self->game_package($game_name)->new;
$self->active_games->{$game_name} = $game;
- return $self->_format($game->_init($args->{who}))
- if $game->can('_init');
+ return $self->_format($game->init($args->{who}))
+ if $game->can('init');
}
return unless defined $action;