git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@32
c11ca15a-4712-0410-83d8-
924469b57eb5
}
}
+ # %netsplit hash checker.
+ foreach (keys %netsplit) {
+ if (&IsNickInAnyChan($_)) {
+ &DEBUG("netsplitC: $_ is in some chan; removing from netsplit list.");
+ delete $netsplit{$_};
+ }
+ next unless (time() - $netsplit{$_} > 60*60*2); # 2 hours.
+
+ if (!&IsNickInAnyChan($_)) {
+ &DEBUG("netsplitC: $_ didn't come back from netsplit in 2 hours; removing from netsplit list.");
+ delete $netsplit{$_};
+ }
+ }
+
&ScheduleThis(30, "netsplitCheck") if (@_);
}