From 26cc9349b7b35318231d1dc8f236a7ac3dc8dcf2 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 27 Jun 2020 22:23:01 +0200 Subject: [PATCH] Fix warning for uninitialized prefix --- Bot.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bot.pm b/Bot.pm index 1c54701..2fc95c2 100644 --- a/Bot.pm +++ b/Bot.pm @@ -381,12 +381,12 @@ sub handleCommand { } } - $c->dm_reply(1) if $p eq '!'; - return 0 unless $self->disp->has_command($command,$c->channel); say localtime(time) . " - $msg"; + $c->dm_reply(1) if $p eq '!'; + return $self->disp->run_command($c,$command,$args); } -- 2.39.2