summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Bot/Games/OO/Game.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bot/Games/OO/Game.pm b/lib/Bot/Games/OO/Game.pm
index 2da71bd..218eb32 100644
--- a/lib/Bot/Games/OO/Game.pm
+++ b/lib/Bot/Games/OO/Game.pm
@@ -9,7 +9,8 @@ sub command {
my %args = @_;
my $method_meta = $class->meta->get_method($name);
- my $superclass = Moose::blessed($method_meta) || 'Moose::Meta::Method';
+ my $superclass = Moose::blessed($method_meta)
+ || $class->meta->method_metaclass;
my @method_metaclass_roles = ('Bot::Games::Trait::Method::Command');
push @method_metaclass_roles, 'Bot::Games::Trait::Method::Formatted'
if $args{formatter};