mirror of
https://github.com/williamkray/maubot-kickbot.git
synced 2024-10-01 06:05:46 -04:00
need to ban from all rooms even if user isnt there
This commit is contained in:
parent
5c5ea59acf
commit
5307a2db59
@ -294,7 +294,8 @@ class KickBot(Plugin):
|
|||||||
roomnamestate = await self.client.get_state_event(room, 'm.room.name')
|
roomnamestate = await self.client.get_state_event(room, 'm.room.name')
|
||||||
roomname = roomnamestate['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')
|
await self.client.ban_user(room, user, reason='banned')
|
||||||
if roomname:
|
if roomname:
|
||||||
ban_list[user].append(roomname)
|
ban_list[user].append(roomname)
|
||||||
|
Loading…
Reference in New Issue
Block a user