diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-07-09 07:25:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-09 07:25:57 -0700 |
commit | e3c26a0e89253fb626515831d8468050e6235d89 (patch) | |
tree | e2e79be4a59bbb2ae198ac8c52456f831f452ff1 /model/config.go | |
parent | b78b216a3c8eb354085f97f33dac5e7661ac9188 (diff) | |
download | chat-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.go | 4 |
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 { |