From a63433e41bad06a9ef8132082b8ef40d91d07aec Mon Sep 17 00:00:00 2001 From: Fredrik de Vibe Date: Fri, 18 Mar 2016 15:54:14 -0400 Subject: Move new config parameters from IRC to Mattermost. PrefixMessagesWithNick, NickFormatter and NicksPerRow. --- matterbridge.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'matterbridge.go') 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 -- cgit v1.2.3