diff options
author | Patrick Griffis <tingping@tingping.se> | 2017-09-19 20:25:17 -0400 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2017-09-19 20:26:28 -0400 |
commit | 053003f490aaf876c01fa0fa8c64674436aee048 (patch) | |
tree | e592bd747b939eb517128da9d46d7cc1f3af3f73 /src/common | |
parent | 4a09ce6fc3687616d6861ec9f016c4d3e41aba2e (diff) |
Handle leading spaces when matching extra alerts
It is common for users to set "foo, bar" and the leading space has caused issues in the past so lets just ignore that.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/inbound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c index 86442fa8..6931bdc1 100644 --- a/src/common/inbound.c +++ b/src/common/inbound.c @@ -237,7 +237,7 @@ alert_match_word (char *word, char *masks) { endchar = *p; *p = 0; - res = match (masks, word); + res = match (g_strchug (masks), word); *p = endchar; if (res) |