From: Michael Andreen Date: Sat, 27 Jun 2020 20:23:01 +0000 (+0200) Subject: Fix warning for uninitialized prefix X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=commitdiff_plain;h=26cc9349b7b35318231d1dc8f236a7ac3dc8dcf2 Fix warning for uninitialized prefix --- 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); }