mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Fix some stuff in ActionTrigger
This commit is contained in:
parent
2122f9d92a
commit
0972cd53e0
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user