Skip to content

Commit

Permalink
Fix USERHOST not to reveal the user's real hostname to IRC Operators
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kobi Shmueli committed Oct 3, 2024
1 parent 1d4a374 commit 36dda85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/s_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 36dda85

Please sign in to comment.