diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/config.go b/config/config.go index 41cff41..a81b936 100644 --- a/config/config.go +++ b/config/config.go @@ -21,13 +21,13 @@ import ( "os" "path/filepath" + "encoding/json" "gopkg.in/yaml.v2" + "maunium.net/go/gomatrix" "maunium.net/go/gomuks/debug" - "maunium.net/go/gomuks/matrix/rooms" "maunium.net/go/gomuks/matrix/pushrules" - "encoding/json" + "maunium.net/go/gomuks/matrix/rooms" "strings" - "maunium.net/go/gomatrix" ) // Config contains the main config of gomuks. @@ -261,7 +261,7 @@ func (config *Config) SaveRooms() { if config.nosave { return } - + os.MkdirAll(config.StateDir, 0700) for _, room := range config.Rooms { path := config.getRoomCachePath(room) |