diff options
author | June McEnroe <june@causal.agency> | 2020-07-06 22:51:15 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-07-06 22:51:15 -0400 |
commit | d74ec7e0f301bbac9f7271d961846445c6a88d75 (patch) | |
tree | d74c2f07cd1b2f5dad89394e799b089022effd43 | |
parent | Add message to ignore patterns (diff) | |
download | catgirl-d74ec7e0f301bbac9f7271d961846445c6a88d75.tar.gz catgirl-d74ec7e0f301bbac9f7271d961846445c6a88d75.zip |
Avoid copying message to match if no ignores are set
Diffstat (limited to '')
-rw-r--r-- | ignore.c | 1 |
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", |