From 36dda8503718d528c8e10e014f92a21f3a2e0a38 Mon Sep 17 00:00:00 2001 From: Kobi Shmueli Date: Thu, 3 Oct 2024 22:06:37 +0300 Subject: [PATCH] Fix USERHOST not to reveal the user's real hostname to IRC Operators This is to prevent IRC clients like mIRC from banning the user's real hostname when the user's address is not in its IAL (internal address list) and it is using USERHOST to get the user's hostname. --- src/s_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_user.c b/src/s_user.c index 0a5dda81..25222a87 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -3188,7 +3188,7 @@ m_userhost(aClient *cptr, aClient *sptr, int parc, char *parv[]) (acptr->user->away) ? '-' : '+', acptr->user->username, #ifdef USER_HOSTMASKING - (IsUmodeH(acptr) && sptr!=acptr && !IsAnOper(sptr))?acptr->user->mhost: + (IsUmodeH(acptr) && sptr!=acptr)?acptr->user->mhost: #endif acptr->user->host); }