From 80d99a8cb0797c634fd4faa9630d6136ff67f21d Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 31 Oct 2015 13:55:10 -0700 Subject: [PATCH] Fix invalid references --- pyircbot/pyircbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyircbot/pyircbot.py b/pyircbot/pyircbot.py index 0eb033a..78d63f1 100644 --- a/pyircbot/pyircbot.py +++ b/pyircbot/pyircbot.py @@ -80,10 +80,10 @@ class PyIRCBot: def connection_closed(self, args, prefix, trailing): """Called when the socket is disconnected. We will want to reconnect. """ - if self.alive: + if self.irc.alive: self.log.warning("Connection was lost. Reconnecting in 5 seconds.") time.sleep(5) - self._connect() + self.connect() def initModules(self): """load modules specified in instance config"""