diff options
author | Fredrik de Vibe <fdv@ifi.uio.no> | 2016-03-18 15:54:14 -0400 |
---|---|---|
committer | Fredrik de Vibe <fdv@ifi.uio.no> | 2016-03-18 15:54:14 -0400 |
commit | a63433e41bad06a9ef8132082b8ef40d91d07aec (patch) | |
tree | 0a04c24e7d8ddb8d1beb67d0c3d28c15f9e30505 /matterbridge.go | |
parent | e0379ca5af0658f59dbee78b730ebd87c279886d (diff) | |
download | matterbridge-msglm-a63433e41bad06a9ef8132082b8ef40d91d07aec.tar.gz matterbridge-msglm-a63433e41bad06a9ef8132082b8ef40d91d07aec.tar.bz2 matterbridge-msglm-a63433e41bad06a9ef8132082b8ef40d91d07aec.zip |
Move new config parameters from IRC to Mattermost.
PrefixMessagesWithNick, NickFormatter and NicksPerRow.
Diffstat (limited to 'matterbridge.go')
-rw-r--r-- | matterbridge.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/matterbridge.go b/matterbridge.go index d2b996a4..6638c2c1 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -108,11 +108,11 @@ func plainformatter (nicks string, nicksPerRow int) string { } func (b *Bridge) formatnicks (nicks string) string { - switch (b.Config.IRC.NickFormatter) { + switch (b.Config.Mattermost.NickFormatter) { case "table": - return tableformatter(nicks, b.Config.IRC.NicksPerRow) + return tableformatter(nicks, b.Config.Mattermost.NicksPerRow) default: - return plainformatter(nicks, b.Config.IRC.NicksPerRow) + return plainformatter(nicks, b.Config.Mattermost.NicksPerRow) } } @@ -136,7 +136,7 @@ func (b *Bridge) SendType(nick string, message string, channel string, mtype str matterMessage.Channel = channel matterMessage.UserName = nick matterMessage.Type = mtype - if (b.Config.IRC.PrefixMessagesWithNick) { + if (b.Config.Mattermost.PrefixMessagesWithNick) { matterMessage.Text = nick + ": " + message } else { matterMessage.Text = message |