Author: Alex Badea <vampire@p16.pub.ro> (by way of Kev <klmitch@mit.edu>)
[ircu2.10.12-pk.git] / ircd / m_who.c
index 06226678197bbcc99a45d0af756595f1287cfd0a..271946b748279209f256abed6d9e1d6188cabf26 100644 (file)
@@ -401,6 +401,7 @@ int m_who(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
               && ((!(matchsel & WHO_FIELD_REN))
               || matchexec(cli_info(acptr), mymask, minlen))
               && ((!(matchsel & WHO_FIELD_NIP))
+             || (HasHiddenHost(acptr) && !IsAnOper(sptr))
               || ((((cli_ip(acptr).s_addr & imask.mask.s_addr) !=
               imask.bits.s_addr)) || (imask.fall
               && matchexec(ircd_ntoa((const char*) &(cli_ip(acptr))), mymask, minlen)))))
@@ -440,6 +441,7 @@ int m_who(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
             && ((!(matchsel & WHO_FIELD_REN))
             || matchexec(cli_info(acptr), mymask, minlen))
             && ((!(matchsel & WHO_FIELD_NIP))
+           || (HasHiddenHost(acptr) && !IsAnOper(sptr))
             || ((((cli_ip(acptr).s_addr & imask.mask.s_addr) != imask.bits.s_addr))
             || (imask.fall
             && matchexec(ircd_ntoa((const char*) &(cli_ip(acptr))), mymask, minlen)))))