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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user