Fixing #835 and writing config.go and matterbridge.toml.sample entries
This commit is contained in:
@@ -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
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user