mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 11:40:27 +00:00
Split newlines for irc (#37)
This commit is contained in:
parent
e8a2e1af63
commit
3ca4309e8a
@ -100,7 +100,9 @@ func (b *Birc) Send(msg config.Message) error {
|
|||||||
b.Command(&msg)
|
b.Command(&msg)
|
||||||
return nil
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user