From: timriker Date: Fri, 6 Jan 2006 09:12:30 +0000 (+0000) Subject: IsFlag, not HasFlag X-Git-Url: https://git.donarmstrong.com/?p=infobot.git;a=commitdiff_plain;h=1b00a2d2850cbee158b0a64b6c84acd0ed8b5680 IsFlag, not HasFlag git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1253 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/IRC/IrcHelpers.pl b/src/IRC/IrcHelpers.pl index 7f41bd9..2e8e31a 100644 --- a/src/IRC/IrcHelpers.pl +++ b/src/IRC/IrcHelpers.pl @@ -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) {