mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 12:12:34 +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: $@");
|
$self->{pbot}->{logger}->log("List triggers failed: $@");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$triggers = [] if not defined $triggers;
|
||||||
return @$triggers;
|
return @$triggers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user