From 76cff9554001ca3727e2ba11b790e9bba27d6b77 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 17 May 2018 16:29:15 +0300 Subject: Move all cache to ~/.cache/gomuks Now `rm -rf ~/.cache/gomuks` has the same effect as `/clearcache` --- matrix/pushrules/rule.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'matrix/pushrules') 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 } -- cgit v1.2.3