1
0
Fork 0
forked from External/grumble

Merge PR #53: Only send configuration updates if the channel exists

This commit is contained in:
Davide Beatrici 2020-03-26 04:57:20 +01:00 committed by GitHub
commit a6dc45193a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,7 +193,10 @@ func (server *Server) SetSuperUserPassword(password string) {
key := "SuperUserPassword"
val := "sha1$" + salt + "$" + digest
server.cfg.Set(key, val)
if server.cfgUpdate != nil {
server.cfgUpdate <- &KeyValuePair{Key: key, Value: val}
}
}
// CheckSuperUserPassword checks whether password matches the set SuperUser password.