projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Author: Alex Badea <vampire@p16.pub.ro> (by way of Kev <klmitch@mit.edu>)
[ircu2.10.12-pk.git]
/
ircd
/
whocmds.c
diff --git
a/ircd/whocmds.c
b/ircd/whocmds.c
index 1f4fb1af1a7f5b764a16ed0d332c9ae54d2ab6c8..fa8def4b5be396fc45af8c3d7f2529d9c7bc837d 100644
(file)
--- a/
ircd/whocmds.c
+++ b/
ircd/whocmds.c
@@
-122,7
+122,9
@@
void do_who(struct Client* sptr, struct Client* acptr, struct Channel* repchan,
if (fields & WHO_FIELD_NIP)
{
if (fields & WHO_FIELD_NIP)
{
- const char* p2 = ircd_ntoa((const char*) &(cli_ip(acptr)));
+ const char* p2 = HasHiddenHost(acptr) && !IsAnOper(sptr) ?
+ feature_str(FEAT_HIDDEN_IP) :
+ ircd_ntoa((const char*) &(cli_ip(acptr)));
*(p1++) = ' ';
while ((*p2) && (*(p1++) = *(p2++)));
}
*(p1++) = ' ';
while ((*p2) && (*(p1++) = *(p2++)));
}