mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-27 13:12:42 +01:00
Interpreter: ensure $context->{hostmask} is set in interpret()
This commit is contained in:
parent
8b7a9d46bd
commit
c9b69e0b50
@ -170,6 +170,10 @@ sub interpret {
|
||||
my $text;
|
||||
my $pbot = $self->{pbot};
|
||||
|
||||
if (not exists $context->{hostmask}) {
|
||||
$context->{hostmask} = "$context->{nick}!$context->{user}\@$context->{host}";
|
||||
}
|
||||
|
||||
$context->{interpret_depth}++;
|
||||
|
||||
$pbot->{logger}->log("=== [$context->{interpret_depth}] Got command: ("
|
||||
|
Loading…
Reference in New Issue
Block a user