From 693f1946b7ef34b430466d1de7dc9a0d445c3894 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 27 Oct 2015 11:25:21 +0100 Subject: Fix multiline messages --- matterbridge.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/matterbridge.go b/matterbridge.go index 4a36e80b..734904cf 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -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) + } } } -- cgit v1.2.3