diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-09 13:03:40 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-09 13:03:40 +0000 |
commit | 273688f6d7820de8d78b1ae1f297fde4f0b5c799 (patch) | |
tree | 6ea7e1b52786fc23f473c3f7b7c3102ad916ac15 /src/irc/flood/autoignore.c | |
parent | 92bce7e219b8ea9c4b7d2f6937025876da5e05f7 (diff) | |
download | irssi-273688f6d7820de8d78b1ae1f297fde4f0b5c799.zip |
Don't check CTCP replies for autoignoring. /RELOAD printed some
warnings to screen if you had ignored any channels. Nothing is
autoignored anymore by default since there's been too many bugs with
it, probably still is..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@441 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/flood/autoignore.c')
-rw-r--r-- | src/irc/flood/autoignore.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/irc/flood/autoignore.c b/src/irc/flood/autoignore.c index 3df4228d..83f4da68 100644 --- a/src/irc/flood/autoignore.c +++ b/src/irc/flood/autoignore.c @@ -235,6 +235,8 @@ static void autoignore_remove_level(const char *nick, int level) AUTOIGNORE_REC *rec; GSList *tmp; + g_return_if_fail(nick != NULL); + for (tmp = servers; tmp != NULL; tmp = tmp->next) { IRC_SERVER_REC *server = tmp->data; @@ -248,18 +250,20 @@ static void autoignore_remove_level(const char *nick, int level) static void sig_ignore_destroyed(IGNORE_REC *ignore) { - autoignore_remove_level(ignore->mask, MSGLEVEL_ALL); + if (ignore->mask != NULL) + autoignore_remove_level(ignore->mask, MSGLEVEL_ALL); } static void sig_ignore_changed(IGNORE_REC *ignore) { - autoignore_remove_level(ignore->mask, ~ignore->level); + if (ignore->mask != NULL) + autoignore_remove_level(ignore->mask, ~ignore->level); } void autoignore_init(void) { settings_add_int("flood", "autoignore_time", 300); - settings_add_str("flood", "autoignore_levels", "ctcps"); + settings_add_str("flood", "autoignore_levels", ""); ignore_tag = g_timeout_add(AUTOIGNORE_TIMECHECK, (GSourceFunc) autoignore_timeout, NULL); |