mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Only send configuration updates if the channel exists
This commit is contained in:
parent
bbb589fb37
commit
6cddec04b5
1 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue