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 #