Removed excess message in !bans command

This commit is contained in:
Nikita Tyukalov, ASUS, Linux
2026-08-26 21:29:35 +03:00
parent af7c9c7467
commit 28ef360d5f

View File

@@ -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: