Prevent coffee-module from serving coffee to names consisting of whitespace.
This commit is contained in:
parent
c62ea59905
commit
66843c000e
|
@ -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…
Reference in New Issue