Move all cache to ~/.cache/gomuks

Now `rm -rf ~/.cache/gomuks` has the same effect as `/clearcache`
This commit is contained in:
Tulir Asokan
2018-05-17 16:29:15 +03:00
parent a1f9ee23fa
commit 76cff95540
8 changed files with 305 additions and 364 deletions

View File

@ -19,8 +19,14 @@ package pushrules
import (
"maunium.net/go/gomuks/lib/glob"
"maunium.net/go/gomatrix"
"encoding/gob"
)
func init() {
gob.Register(PushRuleArray{})
gob.Register(PushRuleMap{})
}
type PushRuleCollection interface {
GetActions(room Room, event *gomatrix.Event) PushActionArray
}