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
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue