Add room unbridge command

This commit is contained in:
Tulir Asokan
2018-03-01 21:06:23 +02:00
parent 64b60559ee
commit 46cac040c7
6 changed files with 75 additions and 21 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ async def execute_room_cleanup(evt, rooms_to_clean):
await room.cleanup_and_delete()
cleaned += 1
elif isinstance(room, str):
await po.Portal.cleanup_room(evt.az.intent, room, type="Room")
await po.Portal.cleanup_room(evt.az.intent, room, message="Room deleted")
cleaned += 1
evt.sender.command_status = None
await evt.reply(f"{cleaned} rooms cleaned up successfully.")