Skip to content

Commit

Permalink
[Cleanup] Move #find item summon links to front (#3483)
Browse files Browse the repository at this point in the history
# Notes
- Move the summon links to the front so they're in a consistent location.
  • Loading branch information
Kinglykrab authored Jul 5, 2023
1 parent 98e56bd commit d4962bb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions zone/gm_commands/find/item.cpp
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ void FindItem(Client *c, const Seperator *sep)
const auto item_id = Strings::ToUnsignedInt(sep->arg[2]);
const auto* item = database.GetItem(item_id);
if (item) {
auto summon_links = Saylink::Silent(
std::string summon_links = Saylink::Silent(
fmt::format(
"#si {}",
item_id
@@ -33,8 +33,8 @@ void FindItem(Client *c, const Seperator *sep)
Chat::White,
fmt::format(
"{} | {}",
database.CreateItemLink(item_id),
summon_links
summon_links,
database.CreateItemLink(item_id)
).c_str()
);

@@ -71,8 +71,8 @@ void FindItem(Client *c, const Seperator *sep)
auto found_count = 0;

for (const auto& e : l) {
const auto *item = database.GetItem(e);
auto summon_links = Saylink::Silent(
const auto* item = database.GetItem(e);
std::string summon_links = Saylink::Silent(
fmt::format(
"#si {}",
e
@@ -98,8 +98,8 @@ void FindItem(Client *c, const Seperator *sep)
Chat::White,
fmt::format(
"{} | {}",
database.CreateItemLink(e),
summon_links
summon_links,
database.CreateItemLink(e)
).c_str()
);

0 comments on commit d4962bb

Please sign in to comment.