mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-30 07:59:42 +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:
parent
2a0912342e
commit
060d3aee6a
@ -96,7 +96,7 @@ sub call_factoid {
|
|||||||
return "No such factoid '$keyword' exists for channel '$chan'";
|
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 {
|
sub factset {
|
||||||
|
Loading…
Reference in New Issue
Block a user