From 0b0e74b8726e473ec98b1793b5582e708054ae73 Mon Sep 17 00:00:00 2001 From: Dino <8dino2@gmail.com> Date: Mon, 4 Sep 2023 19:53:02 -0400 Subject: [PATCH] Dealing with bans in another way --- actionlite/g_svcmds.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/actionlite/g_svcmds.cpp b/actionlite/g_svcmds.cpp index 7f848c8..5b4f9fb 100644 --- a/actionlite/g_svcmds.cpp +++ b/actionlite/g_svcmds.cpp @@ -48,6 +48,7 @@ struct ipfilter_t { unsigned mask; unsigned compare; + int32_t temp_ban_games; }; constexpr size_t MAX_IPFILTERS = 1024; @@ -353,7 +354,7 @@ bool Ban_TeamKiller (edict_t * ent, int rounds) } numipfilters++; } - if (!StringToFilter(ent->client->pers.ip, &ipfilters[i], rounds)) + if (!StringToFilter(ent->client->pers.ip, &ipfilters[i])) { ipfilters[i].compare = 0xffffffff; return false; @@ -379,7 +380,7 @@ void UnBan_TeamKillers (void) for (j = i + 1; j < numipfilters; j++) ipfilters[j - 1] = ipfilters[j]; numipfilters--; - gi.Com_Print ("Unbanned teamkiller/vote kickked.\n"); + gi.Com_Print ("Unbanned teamkiller/vote kicked.\n"); // since we removed the current we have to re-process the new current i--;