summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--matterbridge.go5
1 files changed, 4 insertions, 1 deletions
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)
+ }
}
}