# Created: 20000107
#
-if (&IsParam("useStrict")) { use strict; }
-
+#use strict;
use vars qw($message $arg $qWord $verb $lobotomized);
use vars qw(%channels %chanstats %cmdstats);
sub ispell {
my $query = shift;
- if (! -x "/usr/bin/spell") {
+ if (! -x "/usr/bin/ispell") {
&msg($who, "no binary found.");
return;
}
return;
}
- &rawout("WHO $chan");
+ $conn->who($chan);
$cache{countryStats}{chan} = $chan;
$cache{countryStats}{mtype} = $msgType;
$cache{countryStats}{who} = $who;
return;
}
+ # reload.
+ if ($message =~ /^reload$/i) {
+ return unless (&hasFlag("n"));
+
+ &status("USER reload $who");
+ &pSReply("reloading...");
+ &reloadAllModules();
+ &pSReply("reloaded.");
+ return;
+ }
+
# redir.
if ($message =~ /^redir(\s+(.*))?/i) {
return unless (&hasFlag("o"));
if ($param{'ircNick'} eq $ident) {
&msg($who, "I hope you're right. I'll try anyway.");
}
+ &DEBUG("ircNick => $param{'ircNick'}");
+ &DEBUG("ident => $ident");
if (! &IsNickInAnyChan( $param{ircNick} ) ) {
my $str = "attempting to change nick to $param{'ircNick'}";
&msg($who, $str);
&nick($param{'ircNick'});
} else {
- &msg($who, "hrm... can't do it");
+ &msg($who, "hrm.. I shouldn't do it (BUG?) but doing it anyway!");
&DEBUG("wN: nick is somewhere... should try later.");
+ &nick($param{'ircNick'});
}
return;