]> ruin.nu Git - NDIRC.git/commitdiff
Fix warning for uninitialized prefix
authorMichael Andreen <harv@ruin.nu>
Sat, 27 Jun 2020 20:23:01 +0000 (22:23 +0200)
committerMichael Andreen <harv@ruin.nu>
Sat, 27 Jun 2020 20:23:01 +0000 (22:23 +0200)
Bot.pm

diff --git a/Bot.pm b/Bot.pm
index 1c54701f3251829af9c333e29a12b81d001ed031..2fc95c2ba7b55ba9386709fbf9fa924e233e3cd6 100644 (file)
--- 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);
 }