mirror of
https://code.dnix.de/da/flokatirc
synced 2026-07-27 09:09:45 +02:00
Prevent coffee-module from serving coffee to names consisting of whitespace.
This commit is contained in:
+1
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user