mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-04-26 16:46:31 +00:00
invert sqlite lookup result to fix name in use lookup errors (#1755)
Co-authored-by: jadebenn <9892985+jadebenn@users.noreply.github.com>
This commit is contained in:
parent
f78baee534
commit
aa49aaae76
@ -81,5 +81,5 @@ void SQLiteDatabase::UpdateLastLoggedInCharacter(const uint32_t characterId) {
|
||||
bool SQLiteDatabase::IsNameInUse(const std::string_view name) {
|
||||
auto [_, result] = ExecuteSelect("SELECT name FROM charinfo WHERE name = ? or pending_name = ? LIMIT 1;", name, name);
|
||||
|
||||
return result.eof();
|
||||
return !result.eof();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user