Fix multiline messages

This commit is contained in:
Wim 2015-10-27 11:25:21 +01:00
parent 8b6a00d1c5
commit 693f1946b7
1 changed files with 4 additions and 1 deletions

View File

@ -85,7 +85,10 @@ func (b *Bridge) handleMatter() {
log.Println("received !users from", message.UserName)
b.i.SendRaw("NAMES " + b.Config.IRC.Channel)
}
b.i.Privmsg(b.Config.IRC.Channel, message.UserName+": "+message.Text)
texts := strings.Split(message.Text, "\n")
for _, text := range texts {
b.i.Privmsg(b.Config.IRC.Channel, message.UserName+": "+text)
}
}
}