mirror of
https://github.com/pragma-/pbot.git
synced 2025-06-01 12:27:34 +02:00
Fix some stuff in ActionTrigger
This commit is contained in:
parent
2122f9d92a
commit
0972cd53e0
@ -204,7 +204,7 @@ sub actiontrigger {
|
|||||||
} else {
|
} else {
|
||||||
($channel, $arguments) = split / /, $arguments, 2;
|
($channel, $arguments) = split / /, $arguments, 2;
|
||||||
if ($channel !~ m/^#/) {
|
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 ($n, $u, $h) = $trigger->{owner} =~ /^([^!]+)!([^@]+)\@(.*)$/;
|
||||||
my $command = {
|
my $command = {
|
||||||
nick => $nick,
|
nick => $n,
|
||||||
user => $user,
|
user => $u,
|
||||||
host => $host,
|
host => $h,
|
||||||
command => $action,
|
command => $action,
|
||||||
level => $trigger->{level} // 0
|
level => $trigger->{level} // 0
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user