Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/grumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOla Bini <ola@autonomia.digital>2020-03-25 22:49:19 +0300
committerOla Bini <ola@autonomia.digital>2020-03-25 22:49:19 +0300
commit58f77685e7334cd682b797292ba62016054e5ed2 (patch)
tree01795da69f297a8f00a4924744327f6e14405ffb
parentbbb589fb37cc21819834820c7b54665937203d26 (diff)
Make it possible to change configuration parameters on a server
-rw-r--r--cmd/grumble/server.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/grumble/server.go b/cmd/grumble/server.go
index 8dc0f21..dccda0f 100644
--- a/cmd/grumble/server.go
+++ b/cmd/grumble/server.go
@@ -1562,3 +1562,8 @@ func (server *Server) Stop() (err error) {
return nil
}
+
+// Set will set a configuration value
+func (server *Server) Set(key string, value string) {
+ server.cfg.Set(key, value)
+}