summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2014-12-16 20:39:33 +0100
committerAlexander Færøy <ahf@0x90.dk>2014-12-16 20:39:33 +0100
commit89cdcecf76ffeaa24761a71399a475830e6bd012 (patch)
treeb660a1070a0511c72a3720c204601d4e6133be42 /src
parentcd7a30bf9ade0e979b47c1b67bf770e13bfe82d6 (diff)
parentd9deafe57ccf2fc2191f48c989859e87b7daab06 (diff)
downloadirssi-89cdcecf76ffeaa24761a71399a475830e6bd012.zip
Merge pull request #133 from pjcj/master
Speed up /reload when there are many ignores.
Diffstat (limited to 'src')
-rw-r--r--src/core/ignore.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/ignore.c b/src/core/ignore.c
index 3c45967c..68fae11f 100644
--- a/src/core/ignore.c
+++ b/src/core/ignore.c
@@ -360,8 +360,6 @@ static void ignore_destroy(IGNORE_REC *rec, int send_signal)
g_free_not_null(rec->servertag);
g_free_not_null(rec->pattern);
g_free(rec);
-
- nickmatch_rebuild(nickmatch);
}
void ignore_update_rec(IGNORE_REC *rec)
@@ -380,8 +378,8 @@ void ignore_update_rec(IGNORE_REC *rec)
ignore_init_rec(rec);
signal_emit("ignore changed", 1, rec);
- nickmatch_rebuild(nickmatch);
}
+ nickmatch_rebuild(nickmatch);
}
static int unignore_timeout(void)