X-Git-Url: http://git.kaliko.me/?p=sid.git;a=blobdiff_plain;f=sid%2Frtbl.py;fp=sid%2Frtbl.py;h=0ea3bbbf36a8be446305595d36eeac78501e5795;hp=e5e4e6f933e1fbd093380a36f0a05e34d2a0fa42;hb=da0f73b32be59d4ee9284aebeb8e0dba7b6f6f47;hpb=1a3b109549f5aca715e912309742ea478d215c0a 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)