From 95fb3f5623f606b71c6e7d3bcd2527f23345f330 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 22 Feb 2001 10:52:01 +0000 Subject: /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 --- src/irc/flood/autoignore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/irc/flood/autoignore.c') 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); } -- cgit v1.2.3