From 97aae4bddc68be227e45588aabab39e512358cfd Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 12 Aug 2017 01:28:55 -0700 Subject: [PATCH] Prepend channel name to factshow output if belongs to different channel --- PBot/FactoidCommands.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PBot/FactoidCommands.pm b/PBot/FactoidCommands.pm index 296f4169..ea82e527 100644 --- a/PBot/FactoidCommands.pm +++ b/PBot/FactoidCommands.pm @@ -752,6 +752,8 @@ sub factshow { $result .= ' [module]'; } + $result = "[$channel] $result" if $channel ne $chan; + return $result; }