mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-03 03:50:40 +00:00
[Commands] Add #show keyring Subcommand (#4973)
This commit is contained in:
+15
-3
@@ -4780,9 +4780,21 @@ bool Client::KeyRingClear()
|
||||
);
|
||||
}
|
||||
|
||||
void Client::KeyRingList()
|
||||
void Client::KeyRingList(Client* c)
|
||||
{
|
||||
Message(Chat::LightBlue, "Keys on Keyring:");
|
||||
if (!c) {
|
||||
return;
|
||||
}
|
||||
|
||||
std::string message = "Keys on Keyring:";
|
||||
if (c != this) {
|
||||
message = fmt::format(
|
||||
"Keys on Keyring for {}:",
|
||||
GetCleanName()
|
||||
);
|
||||
}
|
||||
|
||||
c->Message(Chat::LightBlue, message.c_str());
|
||||
|
||||
const EQ::ItemData *item = nullptr;
|
||||
|
||||
@@ -4795,7 +4807,7 @@ void Client::KeyRingList()
|
||||
item->Name
|
||||
);
|
||||
|
||||
Message(Chat::LightBlue, item_string.c_str());
|
||||
c->Message(Chat::LightBlue, item_string.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user