git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@413
c11ca15a-4712-0410-83d8-
924469b57eb5
sub ircCheck {
if (@_) {
- &ScheduleThis(120, "ircCheck");
+ &ScheduleThis(60, "ircCheck");
return if ($_[0] eq "2"); # defer.
} else {
delete $sched{"ircCheck"}{RUNNING};
&rawout("PRIVMSG ChanServ :OP $chan $ident");
}
- if (!$conn->connected and time - $msgtime > 3600) {
+ if (!$conn->connected or time - $msgtime > 3600) {
&WARN("ircCheck: no msg for 3600 and disco'd! reconnecting!");
$msgtime = time(); # just in case.
&ircloop();