Prevent coffee-module from serving coffee to names consisting of whitespace.

This commit is contained in:
Andreas Neue 2016-02-28 10:31:20 +01:00
parent c62ea59905
commit 66843c000e
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func init() {
} }
func coffeeHandleMessage(m *irc.Message) { func coffeeHandleMessage(m *irc.Message) {
tok := strings.Split(m.Trailing, " ") tok := strings.Split(strings.Trim(m.Trailing, " "), " ")
if len(tok) < 1 { if len(tok) < 1 {
return return
} }