mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 19:52:53 +01:00
pr/insp: don't raise KeyError when removing channel from user fails
This commit is contained in:
parent
2a586a6dba
commit
73c625a429
@ -353,7 +353,7 @@ def handle_part(irc, source, command, args):
|
||||
channel = args[0].lower()
|
||||
# We should only get PART commands for channels that exist, right??
|
||||
irc.channels[channel].removeuser(source)
|
||||
irc.users[source].channels.remove(channel)
|
||||
irc.users[source].channels.discard(channel)
|
||||
try:
|
||||
reason = args[1]
|
||||
except IndexError:
|
||||
|
Loading…
Reference in New Issue
Block a user