mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10171] Clarify acoount password/lock command errors.
This commit is contained in:
parent
b398bb4dc4
commit
93e06f945e
8 changed files with 25 additions and 6 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue