From 2649a06fa54289c343f2a4a387228dc72b571b3a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 16 Feb 2002 06:56:31 +0000 Subject: There was the check for max. 10 chars/ban, but for some reason it was 11 in code :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2467 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/bans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irc') 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); -- cgit v1.2.3