Focused an else and added an assert.

This commit is contained in:
Jeremy Fincher 2004-03-25 12:09:39 +00:00
parent a1e4b790dd
commit c697af6f08

View File

@ -327,10 +327,11 @@ class IrcState(IrcCommandDispatcher):
for channel in msg.args[0].split(','): for channel in msg.args[0].split(','):
if channel in self.channels: if channel in self.channels:
self.channels[channel].addUser(msg.nick) self.channels[channel].addUser(msg.nick)
else: elif msg.nick: # It must be us.
chan = ChannelState() chan = ChannelState()
chan.addUser(msg.nick) chan.addUser(msg.nick)
self.channels[channel] = chan self.channels[channel] = chan
assert msg.nick == irc.nick, msg
def doMode(self, irc, msg): def doMode(self, irc, msg):
channel = msg.args[0] channel = msg.args[0]