mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 14:10:41 +01:00
Fix for uncaught exception in IrcState.addMsg.
This commit is contained in:
parent
03b740ec9d
commit
c256a3d275
@ -477,8 +477,11 @@ class IrcState(IrcCommandDispatcher):
|
|||||||
|
|
||||||
def doPart(self, irc, msg):
|
def doPart(self, irc, msg):
|
||||||
for channel in msg.args[0].split(','):
|
for channel in msg.args[0].split(','):
|
||||||
chan = self.channels[channel]
|
try:
|
||||||
if msg.nick == irc.nick:
|
chan = self.channels[channel]
|
||||||
|
except KeyError:
|
||||||
|
continue
|
||||||
|
if ircutils.strEqual(msg.nick, irc.nick):
|
||||||
del self.channels[channel]
|
del self.channels[channel]
|
||||||
else:
|
else:
|
||||||
chan.removeUser(msg.nick)
|
chan.removeUser(msg.nick)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user