summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/channel_mode.c2
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);