diff --git a/core/bot.py b/core/bot.py index 60eeb8c..68250a8 100644 --- a/core/bot.py +++ b/core/bot.py @@ -328,7 +328,7 @@ class IRCBotFactory(ReconnectingClientFactory): error = reason.getErrorMessage() log("%s: connection failed: %s" % (self.name, error)) sendAll("%s: connection failed: %s" % (self.name, error)) - if config["ConnectionNotifications"]: + if main.config["ConnectionNotifications"]: keyword.sendMaster("CONNFAIL %s: %s" % (self.name, error)) self.retry(connector) #ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)