aboutsummaryrefslogtreecommitdiff
path: root/matrix/pushrules
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-17 16:29:15 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-17 16:29:18 +0300
commit76cff9554001ca3727e2ba11b790e9bba27d6b77 (patch)
tree325015fa4b331aeb4487d2ed0aaf94f2f3d40fe4 /matrix/pushrules
parenta1f9ee23fa07bdeb548953cdadb7e2cfb0fa05de (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.go6
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
}