diff options
author | doy <doy@tozt.net> | 2009-01-25 17:46:57 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-01-25 17:46:57 -0500 |
commit | 5590a1ee899259eefe21c1a4f39b1cae86afea4b (patch) | |
tree | 8fb416f57c071f977189d73b2724290b6fba9c78 /lib/Bot/Games.pm | |
parent | d8c5eaa5b686b2146001a46a943c57b5f2fc750a (diff) | |
download | bot-games-5590a1ee899259eefe21c1a4f39b1cae86afea4b.tar.gz bot-games-5590a1ee899259eefe21c1a4f39b1cae86afea4b.zip |
don't warn here, since we'll be calling _add_method on every new instance of the game
Diffstat (limited to 'lib/Bot/Games.pm')
-rw-r--r-- | lib/Bot/Games.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm index 8476315..f463233 100644 --- a/lib/Bot/Games.pm +++ b/lib/Bot/Games.pm @@ -39,10 +39,7 @@ sub _get_command { sub _add_method { my $class = shift; my ($name, $meth) = @_; - if ($class->meta->get_method($name)) { - warn "Not overriding method $name in $class"; - return; - } + return if ($class->meta->get_method($name)); if ($class->meta->is_immutable) { my %immutable_opts = %{ $class->meta->get_immutable_options }; $class->meta->make_mutable; |