diff options
Diffstat (limited to 'matterbridge.go')
-rw-r--r-- | matterbridge.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/matterbridge.go b/matterbridge.go index 6cf4ea2d..4302cf17 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -92,8 +92,12 @@ func (b *Bridge) SendType(nick string, message string, channel string, mtype str matterMessage := matterhook.OMessage{IconURL: b.Config.Mattermost.IconURL} matterMessage.Channel = channel matterMessage.UserName = nick - matterMessage.Text = message matterMessage.Type = mtype + if (b.Config.IRC.PrefixMessagesWithNick) { + matterMessage.Text = nick + ": " + message + } else { + matterMessage.Text = message + } err := b.m.Send(matterMessage) if err != nil { log.Println(err) |