| 279 | } |
| 280 | |
| 281 | static bool ValidateIdentifier(const char *pId, size_t MaxLength, const char *pContext, IConsole *pConsole) |
| 282 | { |
| 283 | if(!ValidIdentifier(pId, MaxLength)) |
| 284 | { |
| 285 | char aError[32 + IConsole::CMDLINE_LENGTH]; |
| 286 | str_format(aError, sizeof(aError), "%s '%s' is not valid", pContext, pId); |
| 287 | pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "serverbrowser", aError); |
| 288 | return false; |
| 289 | } |
| 290 | return true; |
| 291 | } |
| 292 | |
| 293 | bool CServerBrowser::ValidateCommunityId(const char *pCommunityId) const |
| 294 | { |
no test coverage detected