Avoid repeating the network name in whois.

This commit is contained in:
Sadie Powell 2024-11-05 20:41:10 +00:00
parent a93636878c
commit 1bd8c09194
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ void CommandWhois::DoWhois(LocalUser* user, User* dest, time_t signon, unsigned
if (genericoper)
whois.SendLine(RPL_WHOISOPERATOR, dest->server->IsService() ? "is a network service" : "is a server operator");
else
whois.SendLine(RPL_WHOISOPERATOR, INSP_FORMAT("is {} {} on {}", (strchr("AEIOUaeiou", dest->oper->GetType()[0]) ? "an" : "a"), dest->oper->GetType(), ServerInstance->Config->Network));
whois.SendLine(RPL_WHOISOPERATOR, INSP_FORMAT("is {} {}", (strchr("AEIOUaeiou", dest->oper->GetType()[0]) ? "an" : "a"), dest->oper->GetType()));
}
if (whois.IsSelfWhois() || user->HasPrivPermission("users/auspex"))

View File

@ -112,7 +112,7 @@ public:
{
if (whois.GetTarget()->IsModeSet(bm))
{
whois.SendLine(RPL_WHOISBOT, "is a bot on " + ServerInstance->Config->Network);
whois.SendLine(RPL_WHOISBOT, "is a bot");
}
}
};