[10171] Clarify acoount password/lock command errors.

This commit is contained in:
VladimirMangos 2010-07-09 22:40:01 +04:00
parent b398bb4dc4
commit 93e06f945e
8 changed files with 25 additions and 6 deletions

View file

@ -184,7 +184,11 @@ bool ChatHandler::HandleAccountPasswordCommand(const char* args)
{
// allow use from RA, but not from console (not have associated account id)
if (!GetAccountId())
{
SendSysMessage (LANG_RA_ONLY_COMMAND);
SetSentErrorMessage (true);
return false;
}
if(!*args)
return false;
@ -239,7 +243,11 @@ bool ChatHandler::HandleAccountLockCommand(const char* args)
{
// allow use from RA, but not from console (not have associated account id)
if (!GetAccountId())
{
SendSysMessage (LANG_RA_ONLY_COMMAND);
SetSentErrorMessage (true);
return false;
}
if (!*args)
{