From a7923f46ec8f9d12caf9919657fce13ca76edd64 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 13 Jul 2021 14:37:18 -0700 Subject: [PATCH] ProcessManager: silence warning for undefined trigger --- PBot/ProcessManager.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PBot/ProcessManager.pm b/PBot/ProcessManager.pm index 8c3f3f06..b974556a 100644 --- a/PBot/ProcessManager.pm +++ b/PBot/ProcessManager.pm @@ -327,6 +327,8 @@ sub process_pipe_reader { # if nick isn't overridden yet, check for a potential nick prefix # TODO: this stuff should be moved to Interpreter::output_result if (not $context->{nickprefix}) { + $context->{trigger} //= ''; + # 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' and $self->{pbot}->{factoids}->{storage}->exists($context->{channel}, $context->{trigger}, 'add_nick')