diff options
| author | 2020-02-22 08:03:31 +0000 | |
|---|---|---|
| committer | 2020-02-22 08:03:31 +0000 | |
| commit | 9c1b98ef29ab2811fd3982b9b1417811f687b9da (patch) | |
| tree | 2bf2d8924cc3c717bbca589159b5ac8213698c25 /src/core_modules | |
| parent | support `user` (as well as `cuser`) for user object mask banning (diff) | |
| signature | ||
channel.users changes during iteration. copy() it
Diffstat (limited to 'src/core_modules')
| -rw-r--r-- | src/core_modules/line_handler/channel.py | 2 |
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, |
