mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Not displaying "Command not found" error for player security level. Thx Machiavelli <3
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user