Core/Accounts: prevent existing account ban from being updated

Signed-off-by: jackpoz <giacomopoz@gmail.com>
This commit is contained in:
Gogs
2017-12-17 19:11:06 +01:00
committed by jackpoz
parent 657683df7e
commit fbb2b1650f
7 changed files with 26 additions and 2 deletions

View File

@@ -233,6 +233,9 @@ public:
}
handler->SetSentErrorMessage(true);
return false;
case BAN_EXISTS:
handler->PSendSysMessage(LANG_BAN_EXISTS);
break;
}
return true;