diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-22 10:52:01 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-22 10:52:01 +0000 |
commit | 95fb3f5623f606b71c6e7d3bcd2527f23345f330 (patch) | |
tree | af374b8c5007038752288b9c3ea44e0d7a862556 /src/irc/flood/autoignore.c | |
parent | 432ac912c18c022ca42a05a797a9c42a9d735d89 (diff) | |
download | irssi-95fb3f5623f606b71c6e7d3bcd2527f23345f330.zip |
/SET autoignore_levels -> autoignore_level. Fixed a memory leak.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1285 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/flood/autoignore.c')
-rw-r--r-- | src/irc/flood/autoignore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irc/flood/autoignore.c b/src/irc/flood/autoignore.c index bc7be104..470eacb4 100644 --- a/src/irc/flood/autoignore.c +++ b/src/irc/flood/autoignore.c @@ -60,11 +60,10 @@ static void sig_flood(IRC_SERVER_REC *server, const char *nick, const char *host GString *mask; IGNORE_REC *rec; - g_return_if_fail(IS_IRC_SERVER(server)); level = GPOINTER_TO_INT(levelp); - check_level = level2bits(settings_get_str("autoignore_levels")); + check_level = level2bits(settings_get_str("autoignore_level")); mask = g_string_new(nick); mask = g_string_append_c(mask, '!'); @@ -76,12 +75,13 @@ static void sig_flood(IRC_SERVER_REC *server, const char *nick, const char *host else autoignore_update(rec, level); } + g_string_free(mask, TRUE); } void autoignore_init(void) { settings_add_int("flood", "autoignore_time", 300); - settings_add_str("flood", "autoignore_levels", ""); + settings_add_str("flood", "autoignore_level", ""); signal_add("flood", (SIGNAL_FUNC) sig_flood); } |