]> ruin.nu Git - NDIRC.git/blobdiff - Bot.pm
Fix warning for uninitialized prefix
[NDIRC.git] / 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);
 }