1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2002-02-16 06:56:31 +00:00 committed by cras
parent ef5a69cfe1
commit 2649a06fa5

View File

@ -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);