mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Focused an else and added an assert.
This commit is contained in:
parent
a1e4b790dd
commit
c697af6f08
@ -327,10 +327,11 @@ class IrcState(IrcCommandDispatcher):
|
||||
for channel in msg.args[0].split(','):
|
||||
if channel in self.channels:
|
||||
self.channels[channel].addUser(msg.nick)
|
||||
else:
|
||||
elif msg.nick: # It must be us.
|
||||
chan = ChannelState()
|
||||
chan.addUser(msg.nick)
|
||||
self.channels[channel] = chan
|
||||
assert msg.nick == irc.nick, msg
|
||||
|
||||
def doMode(self, irc, msg):
|
||||
channel = msg.args[0]
|
||||
|
Loading…
Reference in New Issue
Block a user