mirror of
https://github.com/brmlab/brmdoor.git
synced 2025-06-07 19:24:01 +02:00
brmd::Log notify_door_open: Add logging routine
This commit is contained in:
parent
6a71581c74
commit
651aeffaf9
1 changed files with 6 additions and 0 deletions
|
@ -814,6 +814,12 @@ sub notify_door_unlocked {
|
|||
info ("[door] unlocked by " . $nick);
|
||||
}
|
||||
|
||||
sub notify_door_open {
|
||||
my ($sender, $newstate, $alert) = @_[SENDER, ARG0, ARG1];
|
||||
|
||||
info ("[door] $newstate (alert $alert)");
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue