$query =~ s/^\s+|\s+$//g;
if (!defined $query or $query =~ /^\s*$/) {
- &FIXME("doQ: query == NULL");
+ &FIXME("doQ: query == NULL (message => $message)");
return '';
}
}
if ($old eq $string) {
- &WARN("smart_replace: no subst made.");
+ &WARN("smart_replace: no subst made. (string => $string)");
}
return $string;
&status("parting $chan");
if (!&validChan($chan)) {
- &status("part: not on $chan");
- next;
+ &WARN("part: not on $chan; doing anyway");
+# next;
}
rawout("PART $chan");
}
# chanserv check: channel specific.
+ ### what the hell is this for...
&chanServCheck($chan);
} else {
sub getHostMask {
my($n) = @_;
- &FIXME("getHostMask...");
+ &FIXME("getHostMask($n) called...");
}
1;
return;
}
+ # reset.
+ if ($message =~ /^reset$/i) {
+ return unless (&hasFlag("n"));
+
+ &msg($who,"resetting...");
+ my @done;
+ foreach ( keys %channels, keys %chanconf ) {
+ next if (grep /^\Q$_\E$/i, @done);
+
+ &part($_);
+
+ push(@done, $_);
+ sleep 1;
+ }
+ &clearIRCVars();
+ &joinNextChan();
+
+ &status("USER reset $who");
+ &msg($who,"resetted");
+
+ return;
+ }
+
# rehash.
if ($message =~ /^rehash$/) {
return unless (&hasFlag("n"));