mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +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(','):
|
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]
|
||||||
|
Loading…
Reference in New Issue
Block a user