mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-12-25 07:15:43 +00:00
Fix multiline messages
This commit is contained in:
parent
8b6a00d1c5
commit
693f1946b7
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user