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

Method ConBanRegion

src/engine/server/server.cpp:165–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void CServerBan::ConBanRegion(IConsole::IResult *pResult, void *pUser)
166{
167 const char *pRegion = pResult->GetString(0);
168 if(str_comp_nocase(pRegion, g_Config.m_SvRegionName))
169 return;
170
171 pResult->RemoveArgument(0);
172 ConBanExt(pResult, pUser);
173}
174
175void CServerBan::ConBanRegionRange(IConsole::IResult *pResult, void *pUser)
176{

Callers

nothing calls this directly

Calls 3

str_comp_nocaseFunction · 0.85
RemoveArgumentMethod · 0.80
GetStringMethod · 0.45

Tested by

no test coverage detected