Fix crash in sending queued messages if SocketDriver.irc is None.

This commit is contained in:
Valentin Lorentz 2013-12-27 13:15:45 +00:00
parent eee8e4ebe6
commit 0ecdb87aef

View File

@ -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):