Skip to content

Commit

Permalink
only check if low/high events are enabled for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncalabrese committed Sep 15, 2015
1 parent 876dc53 commit bffd2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/settings.js
Expand Up @@ -220,7 +220,7 @@ function init ( ) {
function isAlarmEventEnabled (notify) {
var enabled = false;

if (!notify.eventName) {
if ('high' !== notify.eventName && 'low' !== notify.eventName) {
enabled = true;
} else if (notify.eventName === 'high' && notify.level === levels.URGENT && settings.alarmUrgentHigh) {
enabled = true;
Expand Down

0 comments on commit bffd2a7

Please sign in to comment.