From 3ca4309e8ab7de556c45729f5f7a3ee03f61cad3 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 29 Sep 2016 21:21:24 +0200 Subject: Split newlines for irc (#37) --- bridge/irc/irc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bridge/irc') diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index b394a9e0..c6ef70e7 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -100,7 +100,9 @@ func (b *Birc) Send(msg config.Message) error { b.Command(&msg) return nil } - b.i.Privmsg(msg.Channel, msg.Username+msg.Text) + for _, text := range strings.Split(msg.Text, "\n") { + b.i.Privmsg(msg.Channel, msg.Username+text) + } return nil } -- cgit v1.2.3