Not displaying "Command not found" error for player security level. Thx Machiavelli <3

--HG--
branch : trunk
This commit is contained in:
raczman
2009-04-04 23:02:24 +02:00
parent f599b603f3
commit eede65e115

View File

@@ -891,8 +891,11 @@ int ChatHandler::ParseCommands(const char* text)
++text;
if(!ExecuteCommandInTable(getCommandTable(), text, fullcmd))
SendSysMessage(LANG_NO_CMD);
{
if(m_session && m_session->GetSecurity() == SEC_PLAYER)
return 0;
SendSysMessage(LANG_NO_CMD);
}
return 1;
}