fix multi-kick

Spec defines multiple users as joined by spaces not commas
This commit is contained in:
Andy Walker 2015-07-30 12:57:48 -04:00
parent ad73608a87
commit 6112236593

2
irc.go
View File

@ -261,7 +261,7 @@ func (irc *Connection) Kick(user, channel, msg string) {
// empty string ("")
func (irc *Connection) MultiKick(users []string, channel string, msg string) {
var cmd bytes.Buffer
cmd.WriteString(fmt.Sprintf("KICK %s %s", channel, strings.Join(users, " ")))
cmd.WriteString(fmt.Sprintf("KICK %s %s", channel, strings.Join(users, ",")))
if msg != "" {
cmd.WriteString(fmt.Sprintf(" :%s", msg))
}