diff options
author | Wim <wim@42.be> | 2016-08-20 17:23:57 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-08-20 18:08:58 +0200 |
commit | e06efbad9f9220626b5c212642dfc3f72ed84475 (patch) | |
tree | 6a84fdddaca834fd19673437d3ee5d855f969dc3 /bridge/mattermost/mattermost.go | |
parent | 3311c7f92311362e958486f63014330c7643479c (diff) | |
download | matterbridge-msglm-e06efbad9f9220626b5c212642dfc3f72ed84475.tar.gz matterbridge-msglm-e06efbad9f9220626b5c212642dfc3f72ed84475.tar.bz2 matterbridge-msglm-e06efbad9f9220626b5c212642dfc3f72ed84475.zip |
Remove unused code
Diffstat (limited to 'bridge/mattermost/mattermost.go')
-rw-r--r-- | bridge/mattermost/mattermost.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 1371969e..025dab10 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -138,11 +138,6 @@ func (b *Bmattermost) handleMatter() { } flog.mm.Info("Start listening for Mattermost messages") for message := range mchan { - /* - if b.ignoreMessage(message.Username, message.Text, "mattermost") { - continue - } - */ texts := strings.Split(message.Text, "\n") for _, text := range texts { flog.mm.Debug("Sending message from " + message.Username + " to " + message.Channel) @@ -177,19 +172,3 @@ func (b *Bmattermost) handleMatterHook(mchan chan *MMMessage) { mchan <- m } } - -func (b *Bmattermost) formatnicks(nicks []string, continued bool) string { - switch b.Config.Mattermost.NickFormatter { - case "table": - return tableformatter(nicks, b.nicksPerRow(), continued) - default: - return plainformatter(nicks, b.nicksPerRow()) - } -} - -func (b *Bmattermost) nicksPerRow() int { - if b.Config.Mattermost.NicksPerRow < 1 { - return 4 - } - return b.Config.Mattermost.NicksPerRow -} |