fix(core): prevent unsupported-by-client passwords (#1547)

This commit is contained in:
Ercules76
2019-03-07 22:20:02 +01:00
committed by Francesco Borzì
parent 0758677578
commit b0d6b6ee70
5 changed files with 18 additions and 1 deletions

View File

@@ -113,6 +113,10 @@ public:
handler->SendSysMessage(LANG_ACCOUNT_TOO_LONG);
handler->SetSentErrorMessage(true);
return false;
case AOR_PASS_TOO_LONG:
handler->SendSysMessage(LANG_ACCOUNT_PASS_TOO_LONG);
handler->SetSentErrorMessage(true);
return false;
case AOR_NAME_ALREDY_EXIST:
handler->SendSysMessage(LANG_ACCOUNT_ALREADY_EXIST);
handler->SetSentErrorMessage(true);