mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-27 06:19:25 +01:00
ActionTrigger: Remove negative level check since level can no longer be negative
This commit is contained in:
parent
8c92ace849
commit
d772e7a784
@ -236,10 +236,6 @@ sub actiontrigger {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($level < 0) {
|
|
||||||
return "Please be serious.";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($self->add_trigger($channel, $trigger, $action, "$nick!$user\@$host", $level)) {
|
if ($self->add_trigger($channel, $trigger, $action, "$nick!$user\@$host", $level)) {
|
||||||
$result = "Trigger added.";
|
$result = "Trigger added.";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user