ignore mutations of rawm while iterating

This commit is contained in:
xfnw 2022-05-12 08:43:29 -06:00
parent bccf3c855a
commit 2ac269d7f8
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -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):