| 231 | } |
| 232 | |
| 233 | bool 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 | |
| 249 | bool BotDatabase::QueryBotCount(const uint32 owner_id, int class_id, uint32& bot_count, uint32& bot_class_count) |
| 250 | { |
no test coverage detected