mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-05 03:06:38 +00:00
[Commands] Add #find bot Subcommand (#4563)
* [Commands] Add #find bot Subcommand * Update find.cpp * Update find.cpp
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "../client.h"
|
||||
#include "find/aa.cpp"
|
||||
#include "find/body_type.cpp"
|
||||
#include "find/bot.cpp"
|
||||
#include "find/bug_category.cpp"
|
||||
#include "find/character.cpp"
|
||||
#include "find/class.cpp"
|
||||
@@ -67,6 +68,16 @@ void command_find(Client *c, const Seperator *sep)
|
||||
Cmd{.cmd = "zone", .u = "zone [Search Criteria]", .fn = FindZone, .a = {"#fz", "#findzone"}},
|
||||
};
|
||||
|
||||
if (RuleB(Bots, Enabled)) {
|
||||
commands.emplace_back(
|
||||
Cmd{.cmd = "bot", .u = "bot [Search Criteria]", .fn = FindBot, .a = {"#findbot"}}
|
||||
);
|
||||
|
||||
std::sort(commands.begin(), commands.end(), [](const Cmd& a, const Cmd& b) {
|
||||
return a.cmd < b.cmd;
|
||||
});
|
||||
}
|
||||
|
||||
// Check for arguments
|
||||
const auto arguments = sep->argnum;
|
||||
if (!arguments) {
|
||||
|
||||
Reference in New Issue
Block a user