In handling raw.part, remove_channel after calling self.part instead of before

This commit is contained in:
jesopo 2018-09-17 13:09:22 +01:00
parent 007ffec762
commit 9bb81253cb

View file

@ -268,9 +268,9 @@ class LineHandler(object):
if not len(user.channels):
event["server"].remove_user(user)
else:
event["server"].remove_channel(channel)
self.events.on("self.part").call(channel=channel,
reason=reason, server=event["server"])
event["server"].remove_channel(channel)
# unknown command sent by us, oops!
def handle_421(self, event):