summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-07-09 07:25:57 -0700
committerGitHub <noreply@github.com>2018-07-09 07:25:57 -0700
commite3c26a0e89253fb626515831d8468050e6235d89 (patch)
treee2e79be4a59bbb2ae198ac8c52456f831f452ff1 /model/config.go
parentb78b216a3c8eb354085f97f33dac5e7661ac9188 (diff)
downloadchat-e3c26a0e89253fb626515831d8468050e6235d89.tar.gz
chat-e3c26a0e89253fb626515831d8468050e6235d89.tar.bz2
chat-e3c26a0e89253fb626515831d8468050e6235d89.zip
Adding ability for plugin system to respect the defaults listed in the plugin manifest. (#9066)
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/model/config.go b/model/config.go
index 7105af893..652b0ebf2 100644
--- a/model/config.go
+++ b/model/config.go
@@ -1717,7 +1717,7 @@ type PluginSettings struct {
EnableUploads *bool
Directory *string
ClientDirectory *string
- Plugins map[string]interface{}
+ Plugins map[string]map[string]interface{}
PluginStates map[string]*PluginState
}
@@ -1747,7 +1747,7 @@ func (s *PluginSettings) SetDefaults() {
}
if s.Plugins == nil {
- s.Plugins = make(map[string]interface{})
+ s.Plugins = make(map[string]map[string]interface{})
}
if s.PluginStates == nil {