commit 19b198617e3d579384fc1af7cd90d69c28f7b6c2
Author: Wim <wim@42.be>
Date: Sat Apr 21 23:26:39 2018 +0000
diff --git a/bridge/config/config.go b/bridge/config/config.go
index 0a8bbc1..09f15c2 100644
--- a/bridge/config/config.go
+++ b/bridge/config/config.go
@@ -24311 +24318 @@ func (c *Config) GetStringSlice(key string) []string {
func (c *Config) GetStringSlice2D(key string) [][]string {
c.RLock()
defer c.RUnlock()
- if res, ok := c.v.Get(key).([][]string); ok {
- return res
+ result := [][]string{}
+ if res, ok := c.v.Get(key).([]interface{}); ok {
+ for _, entry := range res {
+ result2 := []string{}
+ for _, entry2 := range entry.([]interface{}) {
+ result2 = append(result2, entry2.(string))
+ }
+ result = append(result, result2)
+ }
+ return result
}
- // log.Debugf("getting StringSlice2D %s = %#v", key, c.v.Get(key))
- return [][]string{}
+ return result
}
func GetIconURL(msg *Message, iconURL string) string {