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: except socket.error, e:
self._handleSocketError(e) self._handleSocketError(e)
return return
if not self.irc.zombie: if self.irc and not self.irc.zombie:
self._sendIfMsgs() self._sendIfMsgs()
def connect(self, **kwargs): def connect(self, **kwargs):