summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games.pm
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-01-25 16:26:27 -0500
committerdoy <doy@tozt.net>2009-01-25 16:26:27 -0500
commitb0284c94c5793008bb7ca6381090f31b0c69b40d (patch)
tree761c184952cfbcdf199e5e0fc0161e172b3dda21 /lib/Bot/Games.pm
parent8986e827e89606c8c51fbae6b7eed5340839190b (diff)
downloadbot-games-b0284c94c5793008bb7ca6381090f31b0c69b40d.tar.gz
bot-games-b0284c94c5793008bb7ca6381090f31b0c69b40d.zip
install $self->say into plugins as they are loaded
Diffstat (limited to 'lib/Bot/Games.pm')
-rw-r--r--lib/Bot/Games.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm
index a2a2ed5..e53900b 100644
--- a/lib/Bot/Games.pm
+++ b/lib/Bot/Games.pm
@@ -52,6 +52,7 @@ sub said {
if (!defined $game) {
my $game_package = $self->game_package($game_name);
eval "require $game_package";
+ $game_package->meta->add_method(say => $say);
$game = $game_package->new;
$self->active_games->{$game_name} = $game;
$self->done_init->{$game_name} = 0;