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

Method Con_AddExcludedCommunity

src/engine/client/serverbrowser.cpp:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void CServerBrowser::Con_AddExcludedCommunity(IConsole::IResult *pResult, void *pUserData)
148{
149 CServerBrowser *pThis = static_cast<CServerBrowser *>(pUserData);
150 const char *pCommunityId = pResult->GetString(0);
151 if(!pThis->ValidateCommunityId(pCommunityId))
152 return;
153 pThis->CommunitiesFilter().Add(pCommunityId);
154}
155
156void CServerBrowser::Con_RemoveExcludedCommunity(IConsole::IResult *pResult, void *pUserData)
157{

Callers

nothing calls this directly

Calls 3

ValidateCommunityIdMethod · 0.80
GetStringMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected