summary refs log tree commit diff
path: root/ignore.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-06 22:51:15 -0400
committerJune McEnroe <june@causal.agency>2020-07-06 22:51:15 -0400
commitd74ec7e0f301bbac9f7271d961846445c6a88d75 (patch)
treed74c2f07cd1b2f5dad89394e799b089022effd43 /ignore.c
parentAdd message to ignore patterns (diff)
downloadcatgirl-d74ec7e0f301bbac9f7271d961846445c6a88d75.tar.gz
catgirl-d74ec7e0f301bbac9f7271d961846445c6a88d75.zip
Avoid copying message to match if no ignores are set
Diffstat (limited to '')
-rw-r--r--ignore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ignore.c b/ignore.c
index f91b089..7fecb16 100644
--- a/ignore.c
+++ b/ignore.c
@@ -72,6 +72,7 @@ bool ignoreRemove(const char *pattern) {
 }
 
 enum Heat ignoreCheck(enum Heat heat, uint id, const struct Message *msg) {
+	if (!ignore.len) return heat;
 	char match[512];
 	snprintf(
 		match, sizeof(match), "%s!%s@%s %s %s %s",
ab841546a4341b23fa5270c2fb37c5f6cf302&follow=1'>build: Remove added x509_verify.3 links 3.3.2June McEnroe 2021-04-18tls: Use EC_KEY_set_ex_dataJune McEnroe 2021-04-18Import LibreSSL 3.3.2June McEnroe 2021-03-05Bump version to 3.3.1p1 3.3.1p1June McEnroe 2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe Some compat sources (getentropy_linux.c for example) require OpenSSL. Reported by Robert Scheck. 2020-12-15Import LibreSSL 3.3.1June McEnroe 2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe