my $nick = $event->nick();
my($me,$chan,$why) = $event->args();
+ ### TODO: incomplete.
### .* wait (\d+) second/) {
- &status("X1 $msg");
+ &status("on_ttf: X1 $msg") if (defined $msg);
my $sleep = 5;
&status("going to sleep for $sleep...");
sleep $sleep;
return if ($skipmessage);
return unless (&IsParam("minVolunteerLength") or $addressed);
- local $ignore = 0;
-
foreach (@ignore) {
s/\*/\\S*/g;
- next unless ($nuh =~ /^\Q$_\E$/i);
- $ignore++;
- last;
+ next unless (eval { $nuh =~ /^$_$/i });
+
+ &status("IGNORE <$who> $message");
+ return;
}
if (defined $nuh) {
}
}
- # ignore.
- if ($ignore) {
- return 'IGNORE';
- }
-
# join, must be done before outsider checking.
if ($message =~ /^join(\s+(.*))?\s*$/i) {
return 'join: not addr' unless ($addressed);
$msgType = 'public';
}
-
# karma. set...
if ($message =~ /^(\S+)(--|\+\+)\s*$/ and $addressed) {
return '' unless (&hasParam("karma"));