mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-17 05:50:56 +01:00
ActionTriggers no longer case-insensitive (whoops)
This commit is contained in:
parent
05c47bc675
commit
4d358fd86e
@ -263,7 +263,7 @@ sub actiontrigger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
default {
|
default {
|
||||||
$result = "Usage: actiontrigger <list/add/delete> [arguments]";
|
$result = "Usage: actiontrigger list | actiontrigger add <regex> <trigger> | actiontrigger delete <regex>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -317,7 +317,7 @@ sub check_trigger {
|
|||||||
|
|
||||||
foreach my $trigger (@triggers) {
|
foreach my $trigger (@triggers) {
|
||||||
eval {
|
eval {
|
||||||
if ($text =~ m/$trigger->{trigger}/i) {
|
if ($text =~ m/$trigger->{trigger}/) {
|
||||||
my $action = $trigger->{action};
|
my $action = $trigger->{action};
|
||||||
my @stuff = ($1, $2, $3, $4, $5, $6, $7, $8, $9);
|
my @stuff = ($1, $2, $3, $4, $5, $6, $7, $8, $9);
|
||||||
my $i;
|
my $i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user