]> git.donarmstrong.com Git - infobot.git/commitdiff
IsFlag, not HasFlag
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 6 Jan 2006 09:12:30 +0000 (09:12 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 6 Jan 2006 09:12:30 +0000 (09:12 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1253 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/IrcHelpers.pl

index 7f41bd9a085d7ffbe4e4e5bb83a789976d319826..2e8e31a50b5e03d4fcfca2d0766ee779cf51701d 100644 (file)
@@ -141,7 +141,7 @@ sub hookMsg {
     if ($addressed) {
        my $time = $flood{$floodwho}{$message} || 0;
 
-       if ($msgType eq "public" and (time() - $time < $interval)) {
+       if (!&IsFlag('o') and $msgType eq "public" and (time() - $time < $interval)) {
            ### public != personal who so the below is kind of pointless.
            my @who;
            foreach (keys %flood) {