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.
This commit is contained in:
parent
4a09ce6fc3
commit
053003f490
|
@ -237,7 +237,7 @@ alert_match_word (char *word, char *masks)
|
||||||
{
|
{
|
||||||
endchar = *p;
|
endchar = *p;
|
||||||
*p = 0;
|
*p = 0;
|
||||||
res = match (masks, word);
|
res = match (g_strchug (masks), word);
|
||||||
*p = endchar;
|
*p = endchar;
|
||||||
|
|
||||||
if (res)
|
if (res)
|
||||||
|
|
Loading…
Reference in New Issue