MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / QueryNameAvailability

Method QueryNameAvailability

zone/bot_database.cpp:233–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233bool BotDatabase::QueryNameAvailability(const std::string& bot_name, bool& available_flag)
234{
235 if (
236 bot_name.empty() ||
237 bot_name.size() > 60 ||
238 !database.CheckNameFilter(bot_name) ||
239 database.IsNameUsed(bot_name)
240 ) {
241 return false;
242 }
243
244 available_flag = true;
245
246 return true;
247}
248
249bool BotDatabase::QueryBotCount(const uint32 owner_id, int class_id, uint32& bot_count, uint32& bot_class_count)
250{

Callers 3

createBotMethod · 0.80
helper_bot_createFunction · 0.80
bot_command_cloneFunction · 0.80

Calls 4

CheckNameFilterMethod · 0.80
IsNameUsedMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected