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

Method Con_RemoveExcludedCountry

src/engine/client/serverbrowser.cpp:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void CServerBrowser::Con_RemoveExcludedCountry(IConsole::IResult *pResult, void *pUserData)
176{
177 CServerBrowser *pThis = static_cast<CServerBrowser *>(pUserData);
178 const char *pCommunityId = pResult->GetString(0);
179 const char *pCountryName = pResult->GetString(1);
180 if(!pThis->ValidateCommunityId(pCommunityId) || !pThis->ValidateCountryName(pCountryName))
181 return;
182 pThis->CountriesFilter().Remove(pCommunityId, pCountryName);
183}
184
185void CServerBrowser::Con_AddExcludedType(IConsole::IResult *pResult, void *pUserData)
186{

Callers

nothing calls this directly

Calls 4

ValidateCommunityIdMethod · 0.80
ValidateCountryNameMethod · 0.80
GetStringMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected