diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-17 16:29:15 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-17 16:29:18 +0300 |
commit | 76cff9554001ca3727e2ba11b790e9bba27d6b77 (patch) | |
tree | 325015fa4b331aeb4487d2ed0aaf94f2f3d40fe4 /matrix/pushrules | |
parent | a1f9ee23fa07bdeb548953cdadb7e2cfb0fa05de (diff) |
Move all cache to ~/.cache/gomuks
Now `rm -rf ~/.cache/gomuks` has the same effect as `/clearcache`
Diffstat (limited to 'matrix/pushrules')
-rw-r--r-- | matrix/pushrules/rule.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/matrix/pushrules/rule.go b/matrix/pushrules/rule.go index ec51d24..ddb264e 100644 --- a/matrix/pushrules/rule.go +++ b/matrix/pushrules/rule.go @@ -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 } |