[Cleanup] Fix typo in QueryNameAvailablity (#4869)

This commit is contained in:
nytmyr 2025-04-28 16:49:03 -05:00 committed by GitHub
parent 1a539f6656
commit cd003ff0b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -468,7 +468,7 @@ uint32 helper_bot_create(Client *bot_owner, std::string bot_name, uint8 bot_clas
bool available_flag = false; bool available_flag = false;
!database.botdb.QueryNameAvailablity(bot_name, available_flag); !database.botdb.QueryNameAvailability(bot_name, available_flag);
if (!available_flag) { if (!available_flag) {
bot_owner->Message( bot_owner->Message(

View File

@ -130,7 +130,7 @@ void bot_command_clone(Client *c, const Seperator *sep)
bool available_flag = false; bool available_flag = false;
!database.botdb.QueryNameAvailablity(bot_name, available_flag); !database.botdb.QueryNameAvailability(bot_name, available_flag);
if (!available_flag) { if (!available_flag) {
c->Message( c->Message(

View File

@ -182,7 +182,7 @@ bool BotDatabase::LoadBotSpellCastingChances()
return true; return true;
} }
bool BotDatabase::QueryNameAvailablity(const std::string& bot_name, bool& available_flag) bool BotDatabase::QueryNameAvailability(const std::string& bot_name, bool& available_flag)
{ {
if ( if (
bot_name.empty() || bot_name.empty() ||

View File

@ -48,7 +48,7 @@ public:
/* Bot functions */ /* Bot functions */
bool QueryNameAvailablity(const std::string& bot_name, bool& available_flag); bool QueryNameAvailability(const std::string& bot_name, bool& available_flag);
bool QueryBotCount(const uint32 owner_id, int class_id, uint32& bot_count, uint32& bot_class_count); bool QueryBotCount(const uint32 owner_id, int class_id, uint32& bot_count, uint32& bot_class_count);
bool LoadBotsList(const uint32 owner_id, std::list<BotsAvailableList>& bots_list, bool by_account = false); bool LoadBotsList(const uint32 owner_id, std::list<BotsAvailableList>& bots_list, bool by_account = false);

View File

@ -2786,7 +2786,7 @@ bool QuestManager::createBot(const char *name, const char *lastname, uint8 level
std::string test_name = name; std::string test_name = name;
bool available_flag = false; bool available_flag = false;
if (!database.botdb.QueryNameAvailablity(test_name, available_flag)) { if (!database.botdb.QueryNameAvailability(test_name, available_flag)) {
initiator->Message( initiator->Message(
Chat::White, Chat::White,
fmt::format( fmt::format(