aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules/line_handler
diff options
context:
space:
mode:
Diffstat (limited to 'src/core_modules/line_handler')
-rw-r--r--src/core_modules/line_handler/channel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core_modules/line_handler/channel.py b/src/core_modules/line_handler/channel.py
index 4c9f001c..0d8e2c0c 100644
--- a/src/core_modules/line_handler/channel.py
+++ b/src/core_modules/line_handler/channel.py
@@ -106,7 +106,7 @@ def part(events, event):
user=user, server=event["server"])
else:
event["server"].channels.remove(channel)
- for user in channel.users:
+ for user in channel.users.copy():
event["server"].part_user(channel, user)
events.on("self.part").call(channel=channel, reason=reason,