From 10cd6850075f0409fe4500195a5b998218828982 Mon Sep 17 00:00:00 2001 From: Ben Passmore Date: Sun, 18 Aug 2019 13:44:05 +1000 Subject: [PATCH] Corrected bug when notifications extension not present --- core/main/logger.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/main/logger.rb b/core/main/logger.rb index 52fd9d617..34c6d4ea5 100644 --- a/core/main/logger.rb +++ b/core/main/logger.rb @@ -15,7 +15,8 @@ module Core @config = BeEF::Core::Configuration.instance # if notifications are enabled create a new instance - @notifications = BeEF::Extension::Notifications::Notifications unless @config.get('beef.extension.notifications.enable') == false + notifications_enabled = @config.get('beef.extension.notifications.enable') + @notifications = BeEF::Extension::Notifications::Notifications unless (notifications_enabled == false or notifications_enabled.nil?) end #