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:
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, '@');
|
host = strchr(++user, '@');
|
||||||
if (host == NULL) return str;
|
if (host == NULL) return str;
|
||||||
|
|
||||||
if ((int) (host-user) > 10) {
|
if ((int) (host-user) >= 10) {
|
||||||
/* too long user mask */
|
/* too long user mask */
|
||||||
user[9] = '*';
|
user[9] = '*';
|
||||||
g_memmove(user+10, host, strlen(host)+1);
|
g_memmove(user+10, host, strlen(host)+1);
|
||||||
|
Loading…
Reference in New Issue
Block a user