From fa2865fb10bbcefbb482254f982848d8e293b585 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 8 Sep 2015 01:30:08 -0700 Subject: [PATCH] Fix potential undefined variable warning --- PBot/Factoids.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index b70734b4..3c27aa59 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -382,7 +382,7 @@ sub expand_action_arguments { $action =~ s/\$args/$input/g; } - $input =~ s/'/\\'/g; + $input =~ s/'/\\'/g if defined $input; my @args = shellwords($input); while ($action =~ m/\$arg\[([^]]+)]/g) {