mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -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:
parent
ef5a69cfe1
commit
2649a06fa5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user