3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 04:19:27 +01:00

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

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 {