From 66843c000e57484cb95ccf6360fe52feb2a6b25f Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Sun, 28 Feb 2016 10:31:20 +0100 Subject: [PATCH] Prevent coffee-module from serving coffee to names consisting of whitespace. --- modules/coffee.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/coffee.go b/modules/coffee.go index 03c51c9..4801721 100644 --- a/modules/coffee.go +++ b/modules/coffee.go @@ -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 }