mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Avoid repeating the network name in whois.
This commit is contained in:
parent
a93636878c
commit
1bd8c09194
@ -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"))
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user