3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

Fix some stuff in ActionTrigger

This commit is contained in:
Pragmatic Software 2017-12-27 19:07:35 -08:00
parent 2122f9d92a
commit 0972cd53e0

View File

@ -204,7 +204,7 @@ sub actiontrigger {
} else {
($channel, $arguments) = split / /, $arguments, 2;
if ($channel !~ m/^#/) {
return "Usage from private message: actiontrigger add <channel> <regex> <action>";
return "Usage from private message: actiontrigger add <channel> <level> <regex> <action>";
}
}
@ -350,9 +350,9 @@ sub check_trigger {
my ($n, $u, $h) = $trigger->{owner} =~ /^([^!]+)!([^@]+)\@(.*)$/;
my $command = {
nick => $nick,
user => $user,
host => $host,
nick => $n,
user => $u,
host => $h,
command => $action,
level => $trigger->{level} // 0
};