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.
This commit is contained in:
Pragmatic Software 2015-04-03 10:08:57 -07:00
parent 2a0912342e
commit 060d3aee6a
1 changed files with 1 additions and 1 deletions

View File

@ -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 {