}
# debug. needed for testing
- &TODO("conn->connected = " . $conn->connected());
- &TODO("time()-msgtime = " . time() - $msgtime);
+ &TODO("conn->connected = " . scalar($conn->connected()));
+ &TODO("time()-msgtime = " . scalar(time() - $msgtime));
if (!$conn->connected or time() - $msgtime > 3600) {
# todo: shouldn't we use cache{connect} somewhere?
my $pid = $2;
my $time = $3;
next if (time() - $time < 60*60);
+ # FIXME remove not-pid shm if parent process dead
next if ($pid == $bot_pid);
# don't touch other bots, if they're running.
next unless ($param{ircNick} =~ /^\Q$n\E$/);