git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@366
c11ca15a-4712-0410-83d8-
924469b57eb5
$flood{$floodwho}{$message} = time();
}
$flood{$floodwho}{$message} = time();
}
if ($msgType =~ /public/i) { # public.
$talkchannel = $chan;
&status("<$orig{who}/$chan> $orig{message}");
if ($msgType =~ /public/i) { # public.
$talkchannel = $chan;
&status("<$orig{who}/$chan> $orig{message}");
+ @ignore = keys %{ $ignore{$chan} };
} elsif ($msgType =~ /private/i) { # private.
&status("[$orig{who}] $orig{message}");
$talkchannel = undef;
} elsif ($msgType =~ /private/i) { # private.
&status("[$orig{who}] $orig{message}");
$talkchannel = undef;
} else {
&DEBUG("unknown msgType => $msgType.");
}
} else {
&DEBUG("unknown msgType => $msgType.");
}
+ push(@ignore, keys %{ $ignore{"*"} });
if ((!$skipmessage or &IsChanConf("seenStoreAll")) and
&IsChanConf("seen") and
if ((!$skipmessage or &IsChanConf("seenStoreAll")) and
&IsChanConf("seen") and
return unless (&IsParam("minVolunteerLength") or $addressed);
local $ignore = 0;
return unless (&IsParam("minVolunteerLength") or $addressed);
local $ignore = 0;
- if (exists $ignore{lc $chan}) {
- foreach (keys %{ $ignore{lc $chan} }) {
- s/\*/\\S*/g;
- next unless ($nuh =~ /^\Q$_\E$/i);
- $ignore++;
- last;
- }
+ foreach (@ignore) {
+ s/\*/\\S*/g;
+
+ next unless ($nuh =~ /^\Q$_\E$/i);
+ $ignore++;
+ last;