diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index 1b592571..82d87ace 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -265,7 +265,7 @@ sub interpreter { $self->factoids->hash->{$channel}->{$keyword}->{ref_count}++; $self->factoids->hash->{$channel}->{$keyword}->{ref_user} = $nick; $self->factoids->hash->{$channel}->{$keyword}->{last_referenced_on} = gettimeofday; - $self->factoids->hash->{$channel}->{$keyword}->{last_referenced_in} = $from; + $self->factoids->hash->{$channel}->{$keyword}->{last_referenced_in} = $from || "stdin"; return $self->{factoidmodulelauncher}->execute_module($from, $tonick, $nick, $user, $host, $keyword, $arguments); } @@ -281,7 +281,7 @@ sub interpreter { $self->factoids->hash->{$channel}->{$keyword}->{ref_count}++; $self->factoids->hash->{$channel}->{$keyword}->{ref_user} = $nick; $self->factoids->hash->{$channel}->{$keyword}->{last_referenced_on} = gettimeofday; - $self->factoids->hash->{$channel}->{$keyword}->{last_referenced_in} = $from; + $self->factoids->hash->{$channel}->{$keyword}->{last_referenced_in} = $from || "stdin"; $self->{pbot}->logger->log("(" . (defined $from ? $from : "(undef)") . "): $nick!$user\@$host): $keyword: Displaying text \"" . $self->factoids->hash->{$channel}->{$keyword}->{action} . "\"\n"); diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index afa31cca..bdd423d5 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,7 +13,7 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 250, + BUILD_REVISION => 251, BUILD_DATE => "2011-01-24", };