From 5307a2db5965fcfb00b59b25a40e918324c5126a Mon Sep 17 00:00:00 2001 From: William Kray Date: Wed, 14 Aug 2024 10:37:09 -0700 Subject: [PATCH] need to ban from all rooms even if user isnt there --- kickbot/bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kickbot/bot.py b/kickbot/bot.py index 764c8cd..43b685b 100644 --- a/kickbot/bot.py +++ b/kickbot/bot.py @@ -294,7 +294,8 @@ class KickBot(Plugin): roomnamestate = await self.client.get_state_event(room, 'm.room.name') roomname = roomnamestate['name'] - await self.client.get_state_event(room, EventType.ROOM_MEMBER, user) + # ban user even if they're not in the room! + #await self.client.get_state_event(room, EventType.ROOM_MEMBER, user) await self.client.ban_user(room, user, reason='banned') if roomname: ban_list[user].append(roomname)