mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-29 15:29:32 +01:00
ProcessManager: silence warning for undefined trigger
This commit is contained in:
parent
2a1312a0c5
commit
a7923f46ec
@ -327,6 +327,8 @@ sub process_pipe_reader {
|
|||||||
# if nick isn't overridden yet, check for a potential nick prefix
|
# if nick isn't overridden yet, check for a potential nick prefix
|
||||||
# TODO: this stuff should be moved to Interpreter::output_result
|
# TODO: this stuff should be moved to Interpreter::output_result
|
||||||
if (not $context->{nickprefix}) {
|
if (not $context->{nickprefix}) {
|
||||||
|
$context->{trigger} //= '';
|
||||||
|
|
||||||
# if add_nick is set on the factoid, set the nick override to the caller's nick
|
# if add_nick is set on the factoid, set the nick override to the caller's nick
|
||||||
if (exists $context->{special} and $context->{special} ne 'code-factoid'
|
if (exists $context->{special} and $context->{special} ne 'code-factoid'
|
||||||
and $self->{pbot}->{factoids}->{storage}->exists($context->{channel}, $context->{trigger}, 'add_nick')
|
and $self->{pbot}->{factoids}->{storage}->exists($context->{channel}, $context->{trigger}, 'add_nick')
|
||||||
|
Loading…
Reference in New Issue
Block a user