From da0f73b32be59d4ee9284aebeb8e0dba7b6f6f47 Mon Sep 17 00:00:00 2001 From: kaliko Date: Wed, 22 Mar 2023 17:43:12 +0100 Subject: [PATCH] rtbl: Fixed publish/retract item --- sid/rtbl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sid/rtbl.py b/sid/rtbl.py index e5e4e6f..0ea3bbb 100644 --- a/sid/rtbl.py +++ b/sid/rtbl.py @@ -126,7 +126,7 @@ class RTBL(Plugin): self.log.debug('Retracted item %s from %s' % ( msg['pubsub_event']['items']['retract']['id'], msg['pubsub_event']['items']['node'])) - self.blocklist.retract_item(msg['pubsub_event']['items']['retract']['id']) + self.blocklist.retract_item(msg['pubsub_event']['items']['retract']) async def _publish(self, msg): """Handler receiving a publish item event.""" @@ -139,7 +139,7 @@ class RTBL(Plugin): else: self.log.debug('No item content') return - self.blocklist.insert_item(msg['pubsub_event']['items']['item']['id']) + self.blocklist.insert_item(msg['pubsub_event']['items']['item']) # Are current participants in the block list for jid in list(self.participants): await self.rtbl_ban(jid) -- 2.39.5