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) - closes #22990

This commit is contained in:
Treeston
2019-07-12 13:37:27 +02:00
parent 7d6896b541
commit daf423a6c3
3 changed files with 4 additions and 2 deletions

View File

@@ -406,7 +406,7 @@ public:
}
else
{
stmt = LoginDatabase.GetPreparedStatement(LOGIN_SEL_ACCOUNT_BANNED_BY_USERNAME);
stmt = LoginDatabase.GetPreparedStatement(LOGIN_SEL_ACCOUNT_BANNED_BY_FILTER);
stmt->setString(0, filter);
result = LoginDatabase.Query(stmt);
}