diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-11-17 15:37:13 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-11-17 15:37:13 +0000 |
commit | 38a0ec4185889f4a1efa8d535e192341498e7972 (patch) | |
tree | a6b6150f3a2e77f15281ddc25a6b88f2c1964fd4 /modules/core | |
parent | bad5c9ef4a31e88edcdb7d6616fa72e254aa8ea4 (diff) |
- m_mode.c:ms_bmask(): fixed bug with server hiding enabled
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2561 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/core')
-rw-r--r-- | modules/core/m_mode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/core/m_mode.c b/modules/core/m_mode.c index dbc777f..3dd1cb2 100644 --- a/modules/core/m_mode.c +++ b/modules/core/m_mode.c @@ -212,7 +212,8 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, char *parv[ /* only need to construct one buffer, for non-ts6 servers */ mlen = snprintf(modebuf, sizeof(modebuf), ":%s MODE %s +", - source_p->name, chptr->chname); + (IsHidden(source_p) || ConfigServerHide.hide_servers) ? me.name : source_p->name, + chptr->chname); mbuf = modebuf + mlen; pbuf = parabuf; |