mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-10 22:19:26 +01: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