aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/bansystem.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 20:01:35 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 20:01:35 +0100
commit180470cf75f40bed9c24b22d0afd68871d40c9f3 (patch)
treee649a65d7310240d704c224dca037c15f60e255b /NorthstarDedicatedTest/bansystem.cpp
parent1885caebdaf971bf68073884754325aa8d1c0da7 (diff)
downloadNorthstarLauncher-180470cf75f40bed9c24b22d0afd68871d40c9f3.tar.gz
NorthstarLauncher-180470cf75f40bed9c24b22d0afd68871d40c9f3.zip
standardise concommand func naming in c++
Diffstat (limited to 'NorthstarDedicatedTest/bansystem.cpp')
-rw-r--r--NorthstarDedicatedTest/bansystem.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/NorthstarDedicatedTest/bansystem.cpp b/NorthstarDedicatedTest/bansystem.cpp
index 3f62db38..1688a23c 100644
--- a/NorthstarDedicatedTest/bansystem.cpp
+++ b/NorthstarDedicatedTest/bansystem.cpp
@@ -63,7 +63,7 @@ bool ServerBanSystem::IsUIDAllowed(uint64_t uid)
return std::find(m_vBannedUids.begin(), m_vBannedUids.end(), uid) == m_vBannedUids.end();
}
-void BanPlayerCommand(const CCommand& args)
+void ConCommand_ban(const CCommand& args)
{
if (args.ArgC() < 2)
return;
@@ -82,7 +82,7 @@ void BanPlayerCommand(const CCommand& args)
}
}
-void UnbanPlayerCommand(const CCommand& args)
+void ConCommand_unban(const CCommand& args)
{
if (args.ArgC() < 2)
return;
@@ -91,7 +91,7 @@ void UnbanPlayerCommand(const CCommand& args)
g_ServerBanSystem->UnbanUID(strtoll(args.Arg(1), nullptr, 10));
}
-void ClearBanlistCommand(const CCommand& args)
+void ConCommand_clearbanlist(const CCommand& args)
{
g_ServerBanSystem->ClearBanlist();
}
@@ -101,7 +101,7 @@ ON_DLL_LOAD_RELIESON("engine.dll", BanSystem, ConCommand, (HMODULE baseAddress)
g_ServerBanSystem = new ServerBanSystem;
g_ServerBanSystem->OpenBanlist();
- RegisterConCommand("ban", BanPlayerCommand, "bans a given player by uid or name", FCVAR_GAMEDLL);
- RegisterConCommand("unban", UnbanPlayerCommand, "unbans a given player by uid", FCVAR_NONE);
- RegisterConCommand("clearbanlist", ClearBanlistCommand, "clears all uids on the banlist", FCVAR_NONE);
+ RegisterConCommand("ban", ConCommand_ban, "bans a given player by uid or name", FCVAR_GAMEDLL);
+ RegisterConCommand("unban", ConCommand_unban, "unbans a given player by uid", FCVAR_NONE);
+ RegisterConCommand("clearbanlist", ConCommand_clearbanlist, "clears all uids on the banlist", FCVAR_NONE);
}) \ No newline at end of file