forked from External/grumble
Merge PR #53: Only send configuration updates if the channel exists
This commit is contained in:
commit
a6dc45193a
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)
|
||||
server.cfgUpdate <- &KeyValuePair{Key: key, Value: 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