mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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):
|
||||
for channel in msg.args[0].split(','):
|
||||
try:
|
||||
chan = self.channels[channel]
|
||||
if msg.nick == irc.nick:
|
||||
except KeyError:
|
||||
continue
|
||||
if ircutils.strEqual(msg.nick, irc.nick):
|
||||
del self.channels[channel]
|
||||
else:
|
||||
chan.removeUser(msg.nick)
|
||||
|
Loading…
Reference in New Issue
Block a user