[Commands] Add #find bot Subcommand (#4563)

* [Commands] Add #find bot Subcommand

* Update find.cpp

* Update find.cpp
This commit is contained in:
Alex King
2024-12-12 17:55:33 -05:00
committed by GitHub
parent e258aaa068
commit 77793f364e
3 changed files with 107 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ void FindCharacter(Client *c, const Seperator *sep)
const auto& l = CharacterDataRepository::GetWhere(
content_db,
fmt::format(
"LOWER(`name`) LIKE '%%{}%%' ORDER BY `id` ASC LIMIT 50",
"LOWER(`name`) LIKE '%%{}%%' AND `name` NOT LIKE '%-deleted-%' ORDER BY `id` ASC LIMIT 50",
search_criteria
)
);