Minor style tweak.

This commit is contained in:
Jeremy Fincher 2006-01-12 03:57:10 +00:00
parent 9da5d05f8f
commit dca3a3c099

View File

@ -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.