mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-10 12:59:22 +01:00
Socket: Assert 'irc' is not None.
This commit is contained in:
parent
427f01032b
commit
8aba15807d
@ -68,6 +68,7 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
|||||||
_selecting = [False] # We want it to be mutable.
|
_selecting = [False] # We want it to be mutable.
|
||||||
def __init__(self, irc):
|
def __init__(self, irc):
|
||||||
self._instances.append(self)
|
self._instances.append(self)
|
||||||
|
assert irc is not None
|
||||||
self.irc = irc
|
self.irc = irc
|
||||||
drivers.IrcDriver.__init__(self, irc)
|
drivers.IrcDriver.__init__(self, irc)
|
||||||
drivers.ServersMixin.__init__(self, irc)
|
drivers.ServersMixin.__init__(self, irc)
|
||||||
|
Loading…
Reference in New Issue
Block a user