From df7928877058166e75e2ede8c3e633cafd478525 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 19 Feb 2020 11:14:56 +0000 Subject: channels should be cleared of users when *we* part them --- src/core_modules/line_handler/channel.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core_modules/line_handler') diff --git a/src/core_modules/line_handler/channel.py b/src/core_modules/line_handler/channel.py index 1d1d5d61..4c9f001c 100644 --- a/src/core_modules/line_handler/channel.py +++ b/src/core_modules/line_handler/channel.py @@ -106,6 +106,9 @@ def part(events, event): user=user, server=event["server"]) else: 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, server=event["server"]) -- cgit v1.3.1-10-gc9f91