mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-19 12:48:20 +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:
@@ -19,9 +19,8 @@ void command_itemsearch(Client *c, const Seperator *sep)
|
||||
std::string item_id = std::to_string(item->ID);
|
||||
std::string saylink_commands =
|
||||
"[" +
|
||||
Saylink::Create(
|
||||
Saylink::Silent(
|
||||
"#si " + item_id,
|
||||
false,
|
||||
"X"
|
||||
) +
|
||||
"] ";
|
||||
@@ -30,9 +29,8 @@ void command_itemsearch(Client *c, const Seperator *sep)
|
||||
std::string stack_size = std::to_string(item->StackSize);
|
||||
saylink_commands +=
|
||||
"[" +
|
||||
Saylink::Create(
|
||||
Saylink::Silent(
|
||||
"#si " + item_id + " " + stack_size,
|
||||
false,
|
||||
stack_size
|
||||
) +
|
||||
"]";
|
||||
@@ -77,9 +75,8 @@ void command_itemsearch(Client *c, const Seperator *sep)
|
||||
std::string item_id = std::to_string(item->ID);
|
||||
std::string saylink_commands =
|
||||
"[" +
|
||||
Saylink::Create(
|
||||
Saylink::Silent(
|
||||
"#si " + item_id,
|
||||
false,
|
||||
"X"
|
||||
) +
|
||||
"] ";
|
||||
@@ -87,9 +84,8 @@ void command_itemsearch(Client *c, const Seperator *sep)
|
||||
std::string stack_size = std::to_string(item->StackSize);
|
||||
saylink_commands +=
|
||||
"[" +
|
||||
Saylink::Create(
|
||||
Saylink::Silent(
|
||||
"#si " + item_id + " " + stack_size,
|
||||
false,
|
||||
stack_size
|
||||
) +
|
||||
"]";
|
||||
|
||||
Reference in New Issue
Block a user