mirror of
https://github.com/42wim/matterbridge.git
synced 2024-05-06 15:54:56 +00:00
Fix multiline messages
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user