diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-09-20 10:57:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 11:57:57 +0200 |
commit | 122f84f14d6177cc4c78b817ab71712185e0b47f (patch) | |
tree | 20c8ebcdddcdba06161da89ba5710ef237311f3a /NorthstarDLL/bansystem.cpp | |
parent | 5dd0949213203572109d95daa934d113832525a7 (diff) | |
download | NorthstarLauncher-122f84f14d6177cc4c78b817ab71712185e0b47f.tar.gz NorthstarLauncher-122f84f14d6177cc4c78b817ab71712185e0b47f.zip |
Standardise concommand func naming in C++ (#277)
part of refactor
Diffstat (limited to 'NorthstarDLL/bansystem.cpp')
-rw-r--r-- | NorthstarDLL/bansystem.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/NorthstarDLL/bansystem.cpp b/NorthstarDLL/bansystem.cpp index df98464e..c15cf115 100644 --- a/NorthstarDLL/bansystem.cpp +++ b/NorthstarDLL/bansystem.cpp @@ -177,7 +177,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; @@ -196,7 +196,7 @@ void BanPlayerCommand(const CCommand& args) } } -void UnbanPlayerCommand(const CCommand& args) +void ConCommand_unban(const CCommand& args) { if (args.ArgC() < 2) return; @@ -205,7 +205,7 @@ void UnbanPlayerCommand(const CCommand& args) g_ServerBanSystem->UnbanUID(strtoull(args.Arg(1), nullptr, 10)); } -void ClearBanlistCommand(const CCommand& args) +void ConCommand_clearbanlist(const CCommand& args) { g_ServerBanSystem->ClearBanlist(); } @@ -215,7 +215,7 @@ void InitialiseBanSystem(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); } |