mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue