diff options
-rw-r--r-- | lib/Bot/Games.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm index 3490a10..420d658 100644 --- a/lib/Bot/Games.pm +++ b/lib/Bot/Games.pm @@ -100,7 +100,8 @@ sub said { } my $body = $method_meta->execute($game, $arg, {player => $args->{who}}); - $self->$say($body, formatter => $method_meta->formatter); + my @extra_args = $method_meta->does_role('Bot::Games::Trait::Method::Formatted') ? (formatter => $method_meta->formatter) : (); + $self->$say($body, @extra_args); } else { $self->$say("Unknown command $action for game $game_name"); |