Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 2ca03b4903c1e208d912d0ef326a761a8a926ff4 Author: Wim <wim@42.be> Date: Thu Sep 29 21:21:24 2016 +0000 Split newlines for irc (#37) diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index b394a9e..c6ef70e 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -1007 +1009 @@ 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  }