summaryrefslogtreecommitdiff
path: root/src/botserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/botserv.c')
-rw-r--r--src/botserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/botserv.c b/src/botserv.c
index 7506df7f5..894d6d9df 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -660,7 +660,7 @@ static BanData *get_ban_data(Channel * c, User * u)
if (!c || !u)
return NULL;
- snprintf(mask, sizeof(mask), "%s@%s", u->username,
+ snprintf(mask, sizeof(mask), "%s@%s", common_get_vident(u),
common_get_vhost(u));
for (bd = c->bd; bd; bd = next) {