1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-02 14:53:14 +02:00

In WHOWAS show the normal host (vhost/cloakedhost) to IRCOps now that

the realhost/IP is communicated on a separate line. This so you now
can see both vhost/cloakedhost and realhost as an IRCOp in a single
WHOWAS request.
This commit is contained in:
Bram Matthys
2023-03-25 07:32:43 +01:00
parent 89611887cb
commit b51a533ccf
+1 -3
View File
@@ -100,9 +100,7 @@ CMD_FUNC(cmd_whowas)
{
sendnumeric(client, RPL_WHOWASUSER, temp->name,
temp->username,
(IsOper(client) ? temp->hostname :
(*temp->virthost !=
'\0') ? temp->virthost : temp->hostname),
BadPtr(temp->virthost) ? temp->hostname : temp->virthost,
temp->realname);
if (!BadPtr(temp->ip) && ValidatePermissionsForPath("client:see:ip",client,NULL,NULL,NULL))
{