Prevent coffee-module from serving coffee to names consisting of whitespace.
This commit is contained in:
		
							parent
							
								
									c62ea59905
								
							
						
					
					
						commit
						66843c000e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -20,7 +20,7 @@ func init() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
func coffeeHandleMessage(m *irc.Message) {
 | 
			
		||||
	tok := strings.Split(m.Trailing, " ")
 | 
			
		||||
	tok := strings.Split(strings.Trim(m.Trailing, " "), " ")
 | 
			
		||||
	if len(tok) < 1 {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue