mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
ActionTrigger: fix undefined reference when no triggers
This commit is contained in:
parent
d681f88f23
commit
c788b2c5bd
@ -151,6 +151,7 @@ sub list_triggers {
|
||||
$self->{pbot}->{logger}->log("List triggers failed: $@");
|
||||
}
|
||||
|
||||
$triggers = [] if not defined $triggers;
|
||||
return @$triggers;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user