diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-05 22:25:37 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-05 22:25:37 +0000 |
commit | b5bb47543df97130bd8786481a37b3d3db7249c5 (patch) | |
tree | 5695b7b39749859c858daba8e9e9ab46f909fb10 /modules/m_map.c | |
parent | c2e74da7a8fb5f2421dfca91234e7f595ab09acc (diff) |
- m_map.c: don't leak hidden servers in /map
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2750 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_map.c')
-rw-r--r-- | modules/m_map.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/m_map.c b/modules/m_map.c index 08a8892..8195037 100644 --- a/modules/m_map.c +++ b/modules/m_map.c @@ -79,6 +79,9 @@ static void dump_map(struct Client *client, { target_p = ptr->data; + if (IsHidden(target_p) && !HasUMode(client, UMODE_OPER)) + continue; + if (HasFlag(target_p, FLAGS_SERVICE) && ConfigServerHide.hide_services) if (!HasUMode(client, UMODE_OPER)) continue; @@ -90,6 +93,9 @@ static void dump_map(struct Client *client, { target_p = ptr->data; + if (IsHidden(target_p) && !HasUMode(client, UMODE_OPER)) + continue; + if (HasFlag(target_p, FLAGS_SERVICE) && ConfigServerHide.hide_services) if (!HasUMode(client, UMODE_OPER)) continue; |