diff --git a/zone/command.cpp b/zone/command.cpp index 1dea47cb5..c7f6b3b3a 100755 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -9582,17 +9582,20 @@ void command_oocmute(Client *c, const Seperator *sep) void command_checklos(Client *c, const Seperator *sep) { - if (c->GetTarget()) { - if (c->CheckLosFN(c->GetTarget())) { - c->Message(Chat::White, "You have LOS to %s", c->GetTarget()->GetName()); - } - else { - c->Message(Chat::White, "You do not have LOS to %s", c->GetTarget()->GetName()); - } - } - else { - c->Message(Chat::White, "ERROR: Target required"); + if (!c->GetTarget()) { + c->Message(Chat::White, "You must have a target to use this command."); } + + bool has_los = c->CheckLosFN(c->GetTarget()); + c->Message( + Chat::White, + fmt::format( + "You {}have line of sight to {} ({}).", + has_los ? "" : "do not ", + c->GetTarget()->GetCleanName(), + c->GetTarget()->GetID() + ).c_str() + ); } void command_set_adventure_points(Client *c, const Seperator *sep)