diff options
author | Wim <wim@42.be> | 2016-09-29 21:21:24 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-09-29 21:21:24 +0200 |
commit | 3ca4309e8ab7de556c45729f5f7a3ee03f61cad3 (patch) | |
tree | 41855ba6765845cad7ac10cd67e49ddb527b4737 /bridge/irc/irc.go | |
parent | e8a2e1af63df6ddaedf6dc9e0db43687b676a4a3 (diff) | |
download | matterbridge-msglm-3ca4309e8ab7de556c45729f5f7a3ee03f61cad3.tar.gz matterbridge-msglm-3ca4309e8ab7de556c45729f5f7a3ee03f61cad3.tar.bz2 matterbridge-msglm-3ca4309e8ab7de556c45729f5f7a3ee03f61cad3.zip |
Split newlines for irc (#37)
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r-- | bridge/irc/irc.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 } |