[Bot] Restrict Bot Groups from spawning while Feigned. (#2761)

This commit is contained in:
Aeadoin 2023-01-19 17:52:20 -05:00 committed by GitHub
parent d93ea9ed86
commit 090019cf83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7798,6 +7798,11 @@ void bot_subcommand_botgroup_load(Client *c, const Seperator *sep)
return;
}
if (c->GetFeigned()) {
c->Message(Chat::White, "You cannot spawn a bot-group while feigned.");
return;
}
auto* owner_group = c->GetGroup();
if (owner_group) {
std::list<Client*> member_list;