3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

Interpreter: ensure $context->{hostmask} is set in interpret()

This commit is contained in:
Pragmatic Software 2020-05-04 23:37:13 -07:00
parent 8b7a9d46bd
commit c9b69e0b50

View File

@ -170,6 +170,10 @@ sub interpret {
my $text; my $text;
my $pbot = $self->{pbot}; my $pbot = $self->{pbot};
if (not exists $context->{hostmask}) {
$context->{hostmask} = "$context->{nick}!$context->{user}\@$context->{host}";
}
$context->{interpret_depth}++; $context->{interpret_depth}++;
$pbot->{logger}->log("=== [$context->{interpret_depth}] Got command: (" $pbot->{logger}->log("=== [$context->{interpret_depth}] Got command: ("