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

Method Con_RemoveFavoriteCommunity

src/engine/client/serverbrowser.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void CServerBrowser::Con_RemoveFavoriteCommunity(IConsole::IResult *pResult, void *pUserData)
139{
140 CServerBrowser *pThis = static_cast<CServerBrowser *>(pUserData);
141 const char *pCommunityId = pResult->GetString(0);
142 if(!pThis->ValidateCommunityId(pCommunityId))
143 return;
144 pThis->FavoriteCommunitiesFilter().Remove(pCommunityId);
145}
146
147void CServerBrowser::Con_AddExcludedCommunity(IConsole::IResult *pResult, void *pUserData)
148{

Callers

nothing calls this directly

Calls 3

ValidateCommunityIdMethod · 0.80
GetStringMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected