| 3571 | } |
| 3572 | |
| 3573 | static int GetAuthLevel(const char *pLevel) |
| 3574 | { |
| 3575 | int Level = -1; |
| 3576 | if(!str_comp_nocase(pLevel, "admin")) |
| 3577 | Level = AUTHED_ADMIN; |
| 3578 | else if(str_startswith(pLevel, "mod")) |
| 3579 | Level = AUTHED_MOD; |
| 3580 | else if(!str_comp_nocase(pLevel, "helper")) |
| 3581 | Level = AUTHED_HELPER; |
| 3582 | |
| 3583 | return Level; |
| 3584 | } |
| 3585 | |
| 3586 | bool CServer::CanClientUseCommandCallback(int ClientId, const IConsole::ICommandInfo *pCommand, void *pUser) |
| 3587 | { |
no test coverage detected