4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-07 22:54:04 +00:00

Remove unused code

This commit is contained in:
Wim
2016-08-20 17:23:57 +02:00
parent 3311c7f923
commit e06efbad9f
2 changed files with 0 additions and 80 deletions

View File

@ -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
}