mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-12 20:32:24 +00:00
[Bug Fix] Fix botgrouplist to display unique entries. (#2785)
This commit is contained in:
parent
293f79268d
commit
93eddf603b
@ -7192,7 +7192,13 @@ void bot_subcommand_botgroup_add_member(Client *c, const Seperator *sep)
|
|||||||
std::list<Bot*> sbl;
|
std::list<Bot*> sbl;
|
||||||
MyBots::PopulateSBL_ByNamedBot(c, sbl, sep->arg[1]);
|
MyBots::PopulateSBL_ByNamedBot(c, sbl, sep->arg[1]);
|
||||||
if (sbl.empty()) {
|
if (sbl.empty()) {
|
||||||
c->Message(Chat::White, "You must name a new member as a bot that you own to use this command.");
|
c->Message(
|
||||||
|
Chat::White,
|
||||||
|
fmt::format(
|
||||||
|
"Usage: (<target_leader>) {} [member_name]",
|
||||||
|
sep->arg[0]
|
||||||
|
).c_str()
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2624,7 +2624,7 @@ bool BotDatabase::LoadBotGroupsListByOwnerID(const uint32 owner_id, std::list<st
|
|||||||
|
|
||||||
|
|
||||||
query = fmt::format(
|
query = fmt::format(
|
||||||
"SELECT group_name, group_leader_id FROM "
|
"SELECT DISTINCT(group_name), group_leader_id FROM "
|
||||||
"bot_groups bg INNER JOIN bot_group_members bgm "
|
"bot_groups bg INNER JOIN bot_group_members bgm "
|
||||||
"ON bg.groups_index = bgm.groups_index "
|
"ON bg.groups_index = bgm.groups_index "
|
||||||
"WHERE bgm.bot_id IN "
|
"WHERE bgm.bot_id IN "
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user