Scripts/Commands: .account ban no longer fails if an account containing the specified account name is already banned (f.ex. attempting to ban 'test' if 'test2' is already banned)

Port From (https://github.com/TrinityCore/TrinityCore/commit/b4b581de1b9d2fd6afef02d1734e69b3ce6a8e63)
This commit is contained in:
hondacrx
2021-12-27 16:59:14 -05:00
parent b7f85e9e43
commit cba0f64c2d
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -331,7 +331,7 @@ namespace Game.Chat.Commands
}
else
{
stmt = DB.Login.GetPreparedStatement(LoginStatements.SEL_ACCOUNT_BANNED_BY_USERNAME);
stmt = DB.Login.GetPreparedStatement(LoginStatements.SEL_ACCOUNT_BANNED_BY_FILTER);
stmt.AddValue(0, filter);
result = DB.Login.Query(stmt);
}