if ($nick =~ /^$mask{nick}$/) {
&DEBUG("nick: Changing nick to $nick (from $ident)");
rawout("NICK ".$nick);
+ # unfortunately, on_nick doesn't catch ourself.
+ $ident = $nick;
return 1;
}
&DEBUG("nick: failed... why oh why (nick => $nick)");
&DEBUG("chanServCheck($chan) called.");
if ( &IsParam("nickServ_pass") and !$nickserv) {
- &DEBUG("chanServ_ops($_): nickserv enabled but not alive? (ircCheck)");
+ &DEBUG("chanServ_ops($chan): nickserv enabled but not alive? (ircCheck)");
return;
}
return if (exists $channels{$chan}{'o'}{$ident});
&status("$b_blue$chan$ob: [$chanstats]");
&chanServCheck($chan);
-
- if (scalar @joinchan) { # remaining channels to join.
- # lets do two at once!
- &joinNextChan();
- }
&joinNextChan();
}
delete $nuh{lc $nick};
# successful self-nick change.
+ &DEBUG("on_nick... nick => $nick, ident => $ident");
if ($ident eq "$nick-" or "$ident-" eq $nick) {
&DEBUG("on_nick: well... we need this bug fixed.");
&DEBUG("ident => $ident");
### run NAMES again and flush it.
}
- next unless (!defined $limit or $limit != $newlimit);
+ next unless (!defined $limit);
+ if ($limit == $newlimit) {
+ $cache{chanlimitChange}{$chan} = time();
+ next;
+ }
if (!exists $channels{$chan}{'o'}{$ident}) {
&status("ChanLimit: dont have ops on $chan.") unless (exists $cache{warn}{chanlimit}{$chan});
### this is semi-scheduled
sub getNickInUse {
+ &DEBUG("gNIU: ident => $ident, ircNick => $param{'ircNick'}");
if ($ident eq $param{'ircNick'}) {
&status("okay, got my nick back.");
return;
if ($input eq $logold) {
# allow perl flooding
- $logrepeat++ unless (/!WARN! PERL: Use of uninitialized/);
+ $logrepeat++ unless ($input =~ /PERL: Use of uninitialized/);
# todo: prevent massive repetitive throttling.
if ($logrepeat >= 3) {