channels should be cleared of users when *we* part them

This commit is contained in:
jesopo 2020-02-19 11:14:56 +00:00
parent 8ce7bd17ff
commit df79288770

View file

@ -106,6 +106,9 @@ def part(events, event):
user=user, server=event["server"]) user=user, server=event["server"])
else: else:
event["server"].channels.remove(channel) event["server"].channels.remove(channel)
for user in channel.users:
event["server"].part_user(channel, user)
events.on("self.part").call(channel=channel, reason=reason, events.on("self.part").call(channel=channel, reason=reason,
server=event["server"]) server=event["server"])