Core/Bnetserver: Re-enable ban on wrong password

Closes #17937
Closes #17969
This commit is contained in:
Kevin Plestan
2016-09-24 15:02:34 +02:00
committed by Shauren
parent 8de20eabba
commit 30d006f98b
5 changed files with 101 additions and 30 deletions

View File

@@ -282,6 +282,7 @@ void BanExpiryHandler(boost::system::error_code const& error)
{
LoginDatabase.Execute(LoginDatabase.GetPreparedStatement(LOGIN_DEL_EXPIRED_IP_BANS));
LoginDatabase.Execute(LoginDatabase.GetPreparedStatement(LOGIN_UPD_EXPIRED_ACCOUNT_BANS));
LoginDatabase.Execute(LoginDatabase.GetPreparedStatement(LOGIN_DEL_BNET_EXPERIED_ACCOUNT_BANNED));
_banExpiryCheckTimer->expires_from_now(boost::posix_time::seconds(_banExpiryCheckInterval));
_banExpiryCheckTimer->async_wait(BanExpiryHandler);