From 6c31f3e1b7dc1bed2cca76cad03a306fb58382c7 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 31 Jul 2018 17:23:15 -0700 Subject: [PATCH] Minor correction --- PBot/FactoidCommands.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/PBot/FactoidCommands.pm b/PBot/FactoidCommands.pm index 44fed1d7..64b57772 100644 --- a/PBot/FactoidCommands.pm +++ b/PBot/FactoidCommands.pm @@ -928,11 +928,7 @@ sub factadd { return "Usage: factadd [channel] "; } - if ($from_chan !~ /^#/) { - if (lc $from_chan ne 'global' and $from_chan ne '.*') { - return "Usage: factadd [channel] "; - } - } + $from_chan = '.*' if $from_chan !~ /^#/; if (length $keyword > 30) { return "/say $nick: I don't think the factoid name needs to be that long.";