]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/IrcHooks.pl
- berkeley dbm support now works! thanks to tim riker.
[infobot.git] / src / IRC / IrcHooks.pl
index 125ba7cb45754fed35edf1950ec68cf463f913ff..8370a2178650f8c54d8a14dfa2e30ad33bc31e7f 100644 (file)
@@ -459,6 +459,11 @@ sub on_join {
     my $i              = scalar(keys %{ $channels{$chan} });
     my $j              = $cache{maxpeeps}{$chan} || 0;
 
+    if (time() > $sched{shmFlush}{TIME} + 3600) {
+       &DEBUG("looks like schedulers died somewhere... restarting...");
+       &setupSchedulers();
+    }
+
     $chanstats{$chan}{'Join'}++;
     $userstats{lc $who}{'Join'} = time() if (&IsChanConf("seenStats"));
     $cache{maxpeeps}{$chan}    = $i if ($i > $j);