channels should be cleared of users when *we* part them
This commit is contained in:
parent
8ce7bd17ff
commit
df79288770
1 changed files with 3 additions and 0 deletions
|
@ -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"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue