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,8 +193,11 @@ func (server *Server) SetSuperUserPassword(password string) {
|
||||||
key := "SuperUserPassword"
|
key := "SuperUserPassword"
|
||||||
val := "sha1$" + salt + "$" + digest
|
val := "sha1$" + salt + "$" + digest
|
||||||
server.cfg.Set(key, val)
|
server.cfg.Set(key, val)
|
||||||
|
|
||||||
|
if server.cfgUpdate != nil {
|
||||||
server.cfgUpdate <- &KeyValuePair{Key: key, Value: val}
|
server.cfgUpdate <- &KeyValuePair{Key: key, Value: val}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// CheckSuperUserPassword checks whether password matches the set SuperUser password.
|
// CheckSuperUserPassword checks whether password matches the set SuperUser password.
|
||||||
func (server *Server) CheckSuperUserPassword(password string) bool {
|
func (server *Server) CheckSuperUserPassword(password string) bool {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue