summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bot/Games.pm')
-rw-r--r--lib/Bot/Games.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm
index e53900b..f8a0284 100644
--- a/lib/Bot/Games.pm
+++ b/lib/Bot/Games.pm
@@ -40,7 +40,11 @@ sub said {
my $self = shift;
my ($args) = @_;
my $prefix = $self->prefix;
- my $say = sub { shift; $self->say(%$args, body => $self->_format(@_)) };
+ my $say = sub {
+ shift;
+ return $self->say(%$args, body => $self->_format(@_)) if @_ == 1;
+ return $self->say(%$args, @_);
+ };
return if $args->{channel} eq 'msg';
return unless $args->{body} =~ /^$prefix(\w+)(?:\s+(.*))?/;