From 060d3aee6a386f55347e69cf6a1eb64da7eb6eea Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 3 Apr 2015 10:08:57 -0700 Subject: [PATCH] Fix wrong channel for `fact` command The `fact` command was using $channel instead of $from, which caused the result to be sent to the channel the factoid lives in instead of the channel the command was invoked in. --- PBot/FactoidCommands.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/FactoidCommands.pm b/PBot/FactoidCommands.pm index 7c60c7ca..6933ff27 100644 --- a/PBot/FactoidCommands.pm +++ b/PBot/FactoidCommands.pm @@ -96,7 +96,7 @@ sub call_factoid { return "No such factoid '$keyword' exists for channel '$chan'"; } - return $self->{pbot}->{factoids}->interpreter($channel, $nick, $user, $host, 1, $trigger, $args); + return $self->{pbot}->{factoids}->interpreter($from, $nick, $user, $host, 1, $trigger, $args); } sub factset {