Make splitting with commas more sensible.

master
Robert Gerus 2015-12-22 22:03:35 +01:00
parent e486b26324
commit 09286f3def
1 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,8 @@ func pick(output func(irc.Message), msg irc.Message) {
if strings.Contains(a, ", ") {
args = strings.Split(a, ", ")
} else if strings.Contains(a, ",") {
args = strings.Split(a, ",")
} else {
args = strings.Fields(a)
}