From 8b7b0435cde9528e0e94118bfb7ef94a28af3bdd Mon Sep 17 00:00:00 2001 From: marcelb Date: Thu, 4 Jan 2024 20:59:25 +0100 Subject: [PATCH] Clear, remove unban all IPs in desktrukor --- src/ipban.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/ipban.cpp b/src/ipban.cpp index 87c6bc0..ff745c8 100644 --- a/src/ipban.cpp +++ b/src/ipban.cpp @@ -10,9 +10,7 @@ marcelb::ipban::ipban(const uint& _duration, const string& _db_file) { sleep_if(BOT_LOOP_TIME, run_unban_bot); for (uint i=0; i= ban_duration) { - if (!unban(banned.begin() + i)) { - cout << "[ERROR] Unban is not done properly! " << endl; - } + unban(banned.begin() + i); } } } @@ -23,9 +21,14 @@ marcelb::ipban::ipban(const uint& _duration, const string& _db_file) { marcelb::ipban::~ipban() { run_unban_bot = false; unban_bot.get(); - for (uint i=0; i