1
0
Fork 0
forked from External/ergo

Merge pull request #1189 from slingamn/tagmsg_storage.1

make TAGMSG storage configurable
This commit is contained in:
Shivaram Lingamneni 2020-07-12 10:57:00 -07:00 committed by GitHub
commit 0a6c1f7cc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 74 additions and 26 deletions

View file

@ -526,7 +526,7 @@ func (server *Server) applyConfig(config *Config) (err error) {
server.channels.loadRegisteredChannels(config)
}
// resize history buffers as needed
if oldConfig.History != config.History {
if config.historyChangedFrom(oldConfig) {
for _, channel := range server.channels.Channels() {
channel.resizeHistory(config)
}