From b51a533ccf893e74182fda802dad047b5b3959ea Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 25 Mar 2023 07:32:43 +0100 Subject: [PATCH] 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. --- src/modules/whowas.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/whowas.c b/src/modules/whowas.c index c5149ec07..f70096bbf 100644 --- a/src/modules/whowas.c +++ b/src/modules/whowas.c @@ -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)) {