Skip to content

Commit

Permalink
Merge pull request #2216 from slingamn/redact
Browse files Browse the repository at this point in the history
fix #2215
  • Loading branch information
slingamn authored Feb 6, 2025
2 parents d9f663c + d50f147 commit eb84ede
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions irc/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1530,6 +1530,7 @@ func LoadConfig(filename string) (config *Config, err error) {
config.Server.supportedCaps.Disable(caps.Chathistory)
config.Server.supportedCaps.Disable(caps.EventPlayback)
config.Server.supportedCaps.Disable(caps.ZNCPlayback)
config.Server.supportedCaps.Disable(caps.MessageRedaction)
}

if !config.History.Enabled || !config.History.Persistent.Enabled {
Expand Down Expand Up @@ -1560,6 +1561,10 @@ func LoadConfig(filename string) (config *Config, err error) {
}
}

if !config.History.Retention.AllowIndividualDelete {
config.Server.supportedCaps.Disable(caps.MessageRedaction) // #2215
}

config.Roleplay.addSuffix = utils.BoolDefaultTrue(config.Roleplay.AddSuffix)

config.Datastore.MySQL.ExpireTime = time.Duration(config.History.Restrictions.ExpireTime)
Expand Down

0 comments on commit eb84ede

Please sign in to comment.