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

Method Con_AddFavoriteCommunity

src/engine/client/serverbrowser.cpp:129–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void CServerBrowser::Con_AddFavoriteCommunity(IConsole::IResult *pResult, void *pUserData)
130{
131 CServerBrowser *pThis = static_cast<CServerBrowser *>(pUserData);
132 const char *pCommunityId = pResult->GetString(0);
133 if(!pThis->ValidateCommunityId(pCommunityId))
134 return;
135 pThis->FavoriteCommunitiesFilter().Add(pCommunityId);
136}
137
138void CServerBrowser::Con_RemoveFavoriteCommunity(IConsole::IResult *pResult, void *pUserData)
139{

Callers

nothing calls this directly

Calls 3

ValidateCommunityIdMethod · 0.80
GetStringMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected