3
0
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:
Pragmatic Software 2019-12-15 14:44:52 -08:00
parent d681f88f23
commit c788b2c5bd

View File

@ -151,6 +151,7 @@ sub list_triggers {
$self->{pbot}->{logger}->log("List triggers failed: $@");
}
$triggers = [] if not defined $triggers;
return @$triggers;
}