aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/bansystem.cpp
diff options
context:
space:
mode:
authorKawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>2022-06-27 15:06:24 +0200
committerGitHub <noreply@github.com>2022-06-27 15:06:24 +0200
commitbe37827d471f2f7c6f1ea88edcf97eda539fd72f (patch)
treed15ccf95a74ed42ba12639368dc090fefd1f7db7 /NorthstarDedicatedTest/bansystem.cpp
parent50bb5f3cdd9141dfb48c0d3cb46db185c9c0f708 (diff)
parent5311105b5ca02ba769d9e01e9ff9d6cc85b82d4a (diff)
downloadNorthstarLauncher-be37827d471f2f7c6f1ea88edcf97eda539fd72f.tar.gz
NorthstarLauncher-be37827d471f2f7c6f1ea88edcf97eda539fd72f.zip
Merge branch 'main' into NetCon
Diffstat (limited to 'NorthstarDedicatedTest/bansystem.cpp')
-rw-r--r--NorthstarDedicatedTest/bansystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/bansystem.cpp b/NorthstarDedicatedTest/bansystem.cpp
index 93cf9c65..9c2507fd 100644
--- a/NorthstarDedicatedTest/bansystem.cpp
+++ b/NorthstarDedicatedTest/bansystem.cpp
@@ -20,7 +20,7 @@ void ServerBanSystem::OpenBanlist()
{
std::string line;
while (std::getline(enabledModsStream, line))
- m_vBannedUids.push_back(strtoll(line.c_str(), nullptr, 10));
+ m_vBannedUids.push_back(strtoull(line.c_str(), nullptr, 10));
enabledModsStream.close();
}
@@ -74,7 +74,7 @@ void BanPlayerCommand(const CCommand& args)
if (!strcmp((char*)player + 0x16, args.Arg(1)) || !strcmp((char*)player + 0xF500, args.Arg(1)))
{
- g_ServerBanSystem->BanUID(strtoll((char*)player + 0xF500, nullptr, 10));
+ g_ServerBanSystem->BanUID(strtoull((char*)player + 0xF500, nullptr, 10));
CBaseClient__Disconnect(player, 1, "Banned from server");
break;
}
@@ -87,7 +87,7 @@ void UnbanPlayerCommand(const CCommand& args)
return;
// assumedly the player being unbanned here wasn't already connected, so don't need to iterate over players or anything
- g_ServerBanSystem->UnbanUID(strtoll(args.Arg(1), nullptr, 10));
+ g_ServerBanSystem->UnbanUID(strtoull(args.Arg(1), nullptr, 10));
}
void ClearBanlistCommand(const CCommand& args)