From 0ecdb87aef760aff52103a156a34f322fc712f69 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 27 Dec 2013 13:15:45 +0000 Subject: [PATCH] Fix crash in sending queued messages if SocketDriver.irc is None. --- src/drivers/Socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/Socket.py b/src/drivers/Socket.py index 62eb0f7af..7045df269 100644 --- a/src/drivers/Socket.py +++ b/src/drivers/Socket.py @@ -242,7 +242,7 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin): except socket.error, e: self._handleSocketError(e) return - if not self.irc.zombie: + if self.irc and not self.irc.zombie: self._sendIfMsgs() def connect(self, **kwargs):