diff options
Diffstat (limited to 'src/irc/core')
-rw-r--r-- | src/irc/core/bans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/bans.c b/src/irc/core/bans.c index ea3203c9..159e56c9 100644 --- a/src/irc/core/bans.c +++ b/src/irc/core/bans.c @@ -66,7 +66,7 @@ char *ban_get_mask(IRC_CHANNEL_REC *channel, const char *nick, int ban_type) host = strchr(++user, '@'); if (host == NULL) return str; - if ((int) (host-user) > 10) { + if ((int) (host-user) >= 10) { /* too long user mask */ user[9] = '*'; g_memmove(user+10, host, strlen(host)+1); |