Removed excess message in !bans command
This commit is contained in:
@@ -217,7 +217,6 @@ async def _on_cmd_bans(room: MatrixRoom, args: list[str]) -> None:
|
||||
if not bans:
|
||||
await _bot.send_text_to_room(room.room_id, "<strong>Нет заблокированных IP адресов</strong>", is_html=True)
|
||||
return
|
||||
await _bot.send_text_to_room(room.room_id, f"<strong>Статус бана 127.0.0.1: {"БАН" if _db.ban_check("127.0.0.1") else "небан"}</strong>", is_html=True)
|
||||
# create the response
|
||||
result = "<strong>Список заблокированных IP</strong><br><ul>"
|
||||
for ban in bans:
|
||||
|
||||
Reference in New Issue
Block a user