Fixing #835 and writing config.go and matterbridge.toml.sample entries

This commit is contained in:
Humorhenker
2019-06-03 00:12:23 +02:00
parent e610fb3201
commit a9c76db532
3 changed files with 13 additions and 2 deletions
+1
View File
@@ -79,6 +79,7 @@ type Protocol struct {
ColorNicks bool // only irc for now
Debug bool // general
DebugLevel int // only for irc now
DelayedEnable bool // only for xmpp now
EditSuffix string // mattermost, slack, discord, telegram, gitter
EditDisable bool // mattermost, slack, discord, telegram, gitter
IconURL string // mattermost, slack
+7 -2
View File
@@ -331,6 +331,11 @@ func (b *Bxmpp) skipMessage(message xmpp.Chat) bool {
return true
}
// skip delayed messages
return message.Stamp.IsZero()
// disable delayed skiping #835
if b.GetBool("DelayedEnable") {
return false
} else {
// skip delayed messages
return message.Stamp.IsZero()
}
}