summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-05 22:50:23 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-05 22:50:23 +0000
commit8af78e80caa5a846ec3b28ebd78ea660ca208b33 (patch)
treef872a8efa8757abfdc41de5e052d4396d4d29fa9
parentff314acf5bb9446f1a4916798263a39a205a31c3 (diff)
- m_who.c:do_who(): don't hide hopcount to irc operators
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2755 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--modules/m_who.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/m_who.c b/modules/m_who.c
index ece4563..fde58c2 100644
--- a/modules/m_who.c
+++ b/modules/m_who.c
@@ -68,7 +68,8 @@ do_who(struct Client *source_p, struct Client *target_p,
(chname) ? (chname) : "*",
target_p->username, target_p->host,
HasUMode(source_p, UMODE_OPER) ? target_p->servptr->name : "*",
- target_p->name, status, 0, target_p->info);
+ target_p->name, status,
+ HasUMode(source_p, UMODE_OPER) ? target_p->hopcount : 0, target_p->info);
else
sendto_one(source_p, form_str(RPL_WHOREPLY), me.name, source_p->name,
(chname) ? (chname) : "*", target_p->username,