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

Method ConCommandStatus

src/engine/shared/console.cpp:809–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809void CConsole::ConCommandStatus(IResult *pResult, void *pUser)
810{
811 CConsole *pConsole = static_cast<CConsole *>(pUser);
812 std::optional<EAccessLevel> AccessLevel = AccessLevelToEnum(pResult->GetString(0));
813 if(!AccessLevel.has_value())
814 {
815 log_error("console", "Invalid access level '%s'. Allowed values are admin, moderator, helper and all.", pResult->GetString(0));
816 return;
817 }
818 pConsole->PrintCommandList(AccessLevel.value(), 0);
819}
820
821void CConsole::ConUserCommandStatus(IResult *pResult, void *pUser)
822{

Callers

nothing calls this directly

Calls 2

PrintCommandListMethod · 0.80
GetStringMethod · 0.45

Tested by

no test coverage detected