From 1a3b109549f5aca715e912309742ea478d215c0a Mon Sep 17 00:00:00 2001 From: kaliko Date: Tue, 21 Mar 2023 22:53:45 +0100 Subject: [PATCH] rtbl: Fixed rtbl_ban call --- sid/rtbl.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sid/rtbl.py b/sid/rtbl.py index 13e5c91..e5e4e6f 100644 --- a/sid/rtbl.py +++ b/sid/rtbl.py @@ -108,6 +108,9 @@ class RTBL(Plugin): self.blocklist = BL(node_blocklist['pubsub']['items']) mess = f'Got {len(self.blocklist)} items in block list' self.log.info(mess) + # Are current participants in the block list + for jid in list(self.participants): + await self.rtbl_ban(jid) async def _create(self): """Try to create node""" @@ -138,8 +141,8 @@ class RTBL(Plugin): return self.blocklist.insert_item(msg['pubsub_event']['items']['item']['id']) # Are current participants in the block list - for jid in self.participants: - self.rtbl_ban(jid) + for jid in list(self.participants): + await self.rtbl_ban(jid) async def rtbl_ban(self, jid): """Ban jid in RTBL""" -- 2.39.5