| 1776 | } |
| 1777 | |
| 1778 | const CCommunity *CServerBrowser::Community(const char *pCommunityId) const |
| 1779 | { |
| 1780 | const auto Community = std::find_if(Communities().begin(), Communities().end(), [pCommunityId](const auto &Elem) { |
| 1781 | return str_comp(Elem.Id(), pCommunityId) == 0; |
| 1782 | }); |
| 1783 | return Community == Communities().end() ? nullptr : &(*Community); |
| 1784 | } |
| 1785 | |
| 1786 | std::vector<const CCommunity *> CServerBrowser::SelectedCommunities() const |
| 1787 | { |
no test coverage detected