mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Saylinks] Convert all GM Command Saylinks to Silent Saylinks. (#2373)
* [Saylinks] Convert all GM Command Saylinks to Silent Saylinks. - This cleans up all non-silent GM Command Saylinks that we had before due to the way they worked before. All saylinks like this should be silent now. - Add source short hand capability for say links with same link as text. * Defaults to r anyway. * Spacing.
This commit is contained in:
@@ -5938,9 +5938,8 @@ void bot_subcommand_bot_list(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
auto* bot = entity_list.GetBotByBotName(bots_iter.Name);
|
||||
auto bot_spawn_saylink = Saylink::Create(
|
||||
auto bot_spawn_saylink = Saylink::Silent(
|
||||
fmt::format("^spawn {}", bots_iter.Name),
|
||||
false,
|
||||
bots_iter.Name
|
||||
);
|
||||
|
||||
@@ -7318,9 +7317,8 @@ void bot_subcommand_botgroup_list(Client *c, const Seperator *sep)
|
||||
botgroups_iter.first,
|
||||
botgroups_iter.second,
|
||||
database.botdb.IsBotGroupAutoSpawn(botgroups_iter.first) ? " (Auto Spawn)" : "",
|
||||
Saylink::Create(
|
||||
Saylink::Silent(
|
||||
fmt::format("^botgroupload {}", botgroups_iter.first),
|
||||
false,
|
||||
"Load"
|
||||
)
|
||||
).c_str()
|
||||
@@ -8825,9 +8823,8 @@ void bot_subcommand_inventory_list(Client *c, const Seperator *sep)
|
||||
slot_id,
|
||||
EQ::invslot::GetInvPossessionsSlotName(slot_id),
|
||||
linker.GenerateLink(),
|
||||
Saylink::Create(
|
||||
Saylink::Silent(
|
||||
fmt::format("^inventoryremove {}", slot_id),
|
||||
false,
|
||||
"Remove"
|
||||
)
|
||||
).c_str()
|
||||
@@ -9354,7 +9351,7 @@ uint32 helper_bot_create(Client *bot_owner, std::string bot_name, uint8 bot_clas
|
||||
if (!Bot::IsValidRaceClassCombo(bot_race, bot_class)) {
|
||||
const char* bot_race_name = GetRaceIDName(bot_race);
|
||||
const char* bot_class_name = GetClassIDName(bot_class);
|
||||
std::string view_saylink = Saylink::Create(fmt::format("^viewcombos {}", bot_race), false, "view");
|
||||
std::string view_saylink = Saylink::Silent(fmt::format("^viewcombos {}", bot_race), "view");
|
||||
bot_owner->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
|
||||
Reference in New Issue
Block a user