mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Warning fixes, general cleanup (#5053)
This commit is contained in:
+1
-12
@@ -2779,18 +2779,7 @@ bool QuestManager::createBot(const char *name, const char *lastname, uint8 level
|
||||
}
|
||||
|
||||
std::string test_name = name;
|
||||
bool available_flag = false;
|
||||
if (!database.botdb.QueryNameAvailability(test_name, available_flag)) {
|
||||
initiator->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Failed to query name availability for '{}'.",
|
||||
test_name
|
||||
).c_str()
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool available_flag = database.botdb.QueryNameAvailability(test_name);
|
||||
if (!available_flag) {
|
||||
initiator->Message(
|
||||
Chat::White,
|
||||
|
||||
Reference in New Issue
Block a user