mirror of
https://github.com/42wim/matterbridge.git
synced 2025-02-07 01:54:14 +01:00
parent
c4157a4d5b
commit
2870216804
@ -432,8 +432,13 @@ func (b *Bmatrix) handleEdit(ev *matrix.Event, rmsg config.Message) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if b.GetBool("EditDisable") {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
rmsg.ID = relation.EventID
|
rmsg.ID = relation.EventID
|
||||||
rmsg.Text = newContent.Body
|
rmsg.Text = newContent.Body
|
||||||
|
rmsg.Text += b.GetString("EditSuffix")
|
||||||
b.Remote <- rmsg
|
b.Remote <- rmsg
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
@ -1268,6 +1268,14 @@ UseUserName=false
|
|||||||
# - https://github.com/42wim/matterbridge/issues/1780
|
# - https://github.com/42wim/matterbridge/issues/1780
|
||||||
KeepQuotedReply=false
|
KeepQuotedReply=false
|
||||||
|
|
||||||
|
#Disable sending of edits to other bridges
|
||||||
|
#OPTIONAL (default false)
|
||||||
|
EditDisable=false
|
||||||
|
|
||||||
|
#Message to be appended to every edited message
|
||||||
|
#OPTIONAL (default empty)
|
||||||
|
EditSuffix=" (edited)"
|
||||||
|
|
||||||
#Nicks you want to ignore.
|
#Nicks you want to ignore.
|
||||||
#Regular expressions supported
|
#Regular expressions supported
|
||||||
#Messages from those users will not be sent to other bridges.
|
#Messages from those users will not be sent to other bridges.
|
||||||
|
Loading…
Reference in New Issue
Block a user