]> git.donarmstrong.com Git - infobot.git/commitdiff
- lobotomy check in hookMsg
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 20 Feb 2001 13:01:16 +0000 (13:01 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 20 Feb 2001 13:01:16 +0000 (13:01 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@411 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/IrcHooks.pl

index 0dc9612a4a740ce22039be72a4af09aca134fab9..8f1786bbd0cd410396170d895d0a6c100e44dd4c 100644 (file)
@@ -1044,6 +1044,8 @@ sub hookMsg {
                push(@who, grep /^\Q$message\E$/i, keys %{ $flood{$_} });
            }
 
+           return if ($lobotomized);
+
            if (scalar @who) {
                &msg($who, "you already said what ".
                                join(' ', @who)." have said.");