summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Bot/Games.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm
index 9d42e1b..cc412ef 100644
--- a/lib/Bot/Games.pm
+++ b/lib/Bot/Games.pm
@@ -6,7 +6,13 @@ use Module::Pluggable
except => ['Bot::Games::Game::Ghostlike'],
sub_name => 'games';
extends 'Bot::BasicBot', 'Moose::Object';
-after new => sub { shift->BUILDALL };
+around new => sub {
+ my $orig = shift;
+ my $class = shift;
+ my $self = $class->$orig(@_);
+ $self->BUILDALL({@_});
+ return $self;
+};
has prefix => (
is => 'rw',