From bd2d7e3deadb3d9142630ae633a17b02e2b09fff Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Sun, 9 Jan 2022 00:19:30 +0000 Subject: fix typo in bansystem uid comparison --- NorthstarDedicatedTest/bansystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NorthstarDedicatedTest/bansystem.cpp b/NorthstarDedicatedTest/bansystem.cpp index 610c20e4..a4d994d0 100644 --- a/NorthstarDedicatedTest/bansystem.cpp +++ b/NorthstarDedicatedTest/bansystem.cpp @@ -71,7 +71,7 @@ void BanPlayerCommand(const CCommand& args) { void* player = GetPlayerByIndex(i); - if (!strcmp((char*)player + 0x16, args.Arg(1)) || strcmp((char*)player + 0xF500, args.Arg(1))) + if (!strcmp((char*)player + 0x16, args.Arg(1)) || !strcmp((char*)player + 0xF500, args.Arg(1))) { g_ServerBanSystem->BanUID(strtoll((char*)player + 0xF500, nullptr, 10)); CBaseClient__Disconnect(player, 1, "Banned from server"); -- cgit v1.2.3