diff options
author | LemonBoy <thatlemon@gmail.com> | 2016-01-03 19:49:18 +0100 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2016-01-03 19:49:18 +0100 |
commit | 609f3ba6c2db4f04e1e11304459d4fc42babd8ff (patch) | |
tree | 4f443608facdee13362785646d0f48d4b3a908d4 /src/irc/flood | |
parent | 787956af3aac001755ec87d52cbb28f7c91800e1 (diff) | |
download | irssi-609f3ba6c2db4f04e1e11304459d4fc42babd8ff.zip |
Clean up the ignore_find API to make it more powerful.
This way we prevent the creation of duplicate ignores since the old code
skipped the ignore_find call when a pattern was specified.
It should also cover all the cases where the ignores would be wrongly
overwritten, such as the case outlined in #78.
Diffstat (limited to 'src/irc/flood')
-rw-r--r-- | src/irc/flood/autoignore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/flood/autoignore.c b/src/irc/flood/autoignore.c index 250a1fe8..4708cb03 100644 --- a/src/irc/flood/autoignore.c +++ b/src/irc/flood/autoignore.c @@ -66,7 +66,7 @@ static void sig_flood(IRC_SERVER_REC *server, const char *nick, const char *host mask = g_strdup_printf("%s!%s", nick, host); if (level & check_level) { - rec = ignore_find(server->tag, mask, NULL); + rec = ignore_find(server->tag, mask, NULL, NULL, 0); if (rec == NULL) autoignore_add(server, mask, level); else |