return '' if (&IsParam("noSHM"));
if (shmread($key,$retval,$position,$size)) {
- &DEBUG("shmRead($key): $retval");
+ #&DEBUG("shmRead($key): $retval");
return $retval;
} else {
&ERROR("shmRead: failed: $!");
my $read = &shmRead($key);
$read =~ s/\0+//g;
if ($read eq "") {
- $str = sprintf("%s:%d:%d: ", $param{ircNick}, $bot_pid, time());
+ $str = sprintf("%s:%d:%d: ", $param{ircUser}, $bot_pid, time());
} else {
$str = $read ."||". $str;
}
return if ($$ != $::bot_pid); # fork protection.
if (@_) {
- &ScheduleThis(5, "shmFlush");
+ &ScheduleThis(15, "shmFlush");
return if ($_[0] eq "2");
}