diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-06-15 21:00:59 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-06-15 21:00:59 +0000 |
commit | 6bdc9f5a66d8248bd0105d456aa7c54fb5f59434 (patch) | |
tree | 63c9f48868af87971c5595167f8f0e949b5a95e9 /src | |
parent | 693c3096c7f3842a13ef128cf254b5e68974e557 (diff) |
- channel_mode.c:add_id(): don't leak server names of servers that are hidden.
Patch provided by Adam <adam@anope.org>
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2243 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src')
-rw-r--r-- | src/channel_mode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/channel_mode.c b/src/channel_mode.c index 4cf96e9..cef38da 100644 --- a/src/channel_mode.c +++ b/src/channel_mode.c @@ -239,6 +239,8 @@ add_id(struct Client *client_p, struct Channel *chptr, char *banid, int type) sprintf(ban_p->who, "%s!%s@%s", client_p->name, client_p->username, client_p->host); } + else if (IsHidden(client_p) || (IsServer(client_p) && ConfigServerHide.hide_servers)) + ban_p->who = xstrdup(me.name); else ban_p->who = xstrdup(client_p->name); |