mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Minor style tweak.
This commit is contained in:
parent
9da5d05f8f
commit
dca3a3c099
@ -226,7 +226,7 @@ class IrcMsgQueue(object):
|
|||||||
# Maintains the state of IRC connection -- the most recent messages, the
|
# Maintains the state of IRC connection -- the most recent messages, the
|
||||||
# status of various modes (especially ops/halfops/voices) in channels, etc.
|
# status of various modes (especially ops/halfops/voices) in channels, etc.
|
||||||
###
|
###
|
||||||
class ChannelState(object):
|
class ChannelState(utils.python.Object):
|
||||||
__slots__ = ('users', 'ops', 'halfops', 'bans',
|
__slots__ = ('users', 'ops', 'halfops', 'bans',
|
||||||
'voices', 'topic', 'modes', 'created')
|
'voices', 'topic', 'modes', 'created')
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -331,9 +331,6 @@ class ChannelState(object):
|
|||||||
ret = ret and getattr(self, name) == getattr(other, name)
|
ret = ret and getattr(self, name) == getattr(other, name)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def __ne__(self, other):
|
|
||||||
# This shouldn't even be necessary, grr...
|
|
||||||
return not self == other
|
|
||||||
|
|
||||||
class IrcState(IrcCommandDispatcher):
|
class IrcState(IrcCommandDispatcher):
|
||||||
"""Maintains state of the Irc connection. Should also become smarter.
|
"""Maintains state of the Irc connection. Should also become smarter.
|
||||||
|
Loading…
Reference in New Issue
Block a user