From 2ac269d7f80a6547bcf3610df79518cfb2c9f09b Mon Sep 17 00:00:00 2001 From: xfnw Date: Thu, 12 May 2022 08:43:29 -0600 Subject: [PATCH] ignore mutations of rawm while iterating --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 87994e0..eb15a7e 100755 --- a/bot.py +++ b/bot.py @@ -103,7 +103,7 @@ class Server(BaseServer): await self.handle_command(channel, nick, msg) async def handle_rawm(self, channel, nick, msg): - for i in shared.rawm: + for i in list(shared.rawm): await shared.rawm[i](self, channel, nick, msg) async def handle_command(self, channel, nick, msg):