diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-01-09 00:19:30 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-01-09 00:19:30 +0000 |
commit | bd2d7e3deadb3d9142630ae633a17b02e2b09fff (patch) | |
tree | cb51a5068ac591358386479fc7347647f4011468 /NorthstarDedicatedTest | |
parent | 733bf92983fa60abfaad6af5c0b9950c3d1e3a4e (diff) | |
download | NorthstarLauncher-bd2d7e3deadb3d9142630ae633a17b02e2b09fff.tar.gz NorthstarLauncher-bd2d7e3deadb3d9142630ae633a17b02e2b09fff.zip |
fix typo in bansystem uid comparison
Diffstat (limited to 'NorthstarDedicatedTest')
-rw-r--r-- | NorthstarDedicatedTest/bansystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |