MCPcopy Create free account
hub / github.com/ddnet/ddnet / ConBanRegionRange

Method ConBanRegionRange

src/engine/server/server.cpp:175–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void CServerBan::ConBanRegionRange(IConsole::IResult *pResult, void *pUser)
176{
177 CServerBan *pServerBan = static_cast<CServerBan *>(pUser);
178
179 const char *pRegion = pResult->GetString(0);
180 if(str_comp_nocase(pRegion, g_Config.m_SvRegionName))
181 return;
182
183 pResult->RemoveArgument(0);
184 ConBanRange(pResult, static_cast<CNetBan *>(pServerBan));
185}
186
187// Not thread-safe!
188class CRconClientLogger : public ILogger

Callers

nothing calls this directly

Calls 3

str_comp_nocaseFunction · 0.85
RemoveArgumentMethod · 0.80
GetStringMethod · 0.45

Tested by

no test coverage detected