summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-16 06:56:31 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-16 06:56:31 +0000
commit2649a06fa54289c343f2a4a387228dc72b571b3a (patch)
tree53bf9a2c69a462181370754fa46e881fa363ff68 /src
parentef5a69cfe143fa20ededa097089d5f191dde8670 (diff)
downloadirssi-2649a06fa54289c343f2a4a387228dc72b571b3a.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/bans.c2
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);