summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-10-31 16:05:34 -0500
committerJesse Luehrs <doy@tozt.net>2009-10-31 16:05:34 -0500
commit974467c12c017d926343db3790cd429de0f3b8c1 (patch)
tree600abdc3918623552b10e0f16b3fe3ce1d3ba076
parent4420ef850b4fd069c6751a4e8f58d74382b0e4d1 (diff)
downloadbot-games-974467c12c017d926343db3790cd429de0f3b8c1.tar.gz
bot-games-974467c12c017d926343db3790cd429de0f3b8c1.zip
init_meta isn't generated if metarole stuff isn't used
-rw-r--r--lib/Bot/Games/OO.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Bot/Games/OO.pm b/lib/Bot/Games/OO.pm
index c05cf77..7c2ea62 100644
--- a/lib/Bot/Games/OO.pm
+++ b/lib/Bot/Games/OO.pm
@@ -2,7 +2,7 @@ package Bot::Games::OO;
use IM::Engine::Plugin::Commands::OO ();
use Moose::Exporter;
-my ($import, $unimport, $init_meta) = Moose::Exporter->build_import_methods(
+Moose::Exporter->build_import_methods(
install => [qw(import unimport)],
also => ['IM::Engine::Plugin::Commands::OO'],
);
@@ -13,7 +13,8 @@ sub init_meta {
if !exists $options{base_class}
&& $options{for_class} ne 'Bot::Games::Game';
IM::Engine::Plugin::Commands::OO->init_meta(%options);
- goto $init_meta;
+ # no init_meta is generated, since no metarole options were specified
+ return Class::MOP::class_of($options{for_class});
}
1;