summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthias Hecker <mail@apoc.cc>2020-04-08 22:16:43 +0200
committerMatthias Hecker <mail@apoc.cc>2020-04-08 22:16:43 +0200
commitf8e85aa40bfc1118acd1e29de75f3befc9dc6266 (patch)
treedb132ea4f208a7aba1844e707b0e6ecffc64f23c /lib
parent08cd983415786c83f8661195f2200a35c272b6b1 (diff)
fix: in-memory registry persist correctly
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/registry/mem.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/rbot/registry/mem.rb b/lib/rbot/registry/mem.rb
index 85d52b15..0664ad39 100644
--- a/lib/rbot/registry/mem.rb
+++ b/lib/rbot/registry/mem.rb
@@ -13,9 +13,20 @@ class Registry
class MemAccessor < AbstractAccessor
+ def initialize(filename)
+ super(filename)
+ @data = {}
+ end
+
def registry
super
- @registry = {}
+ @registry = @data
+ end
+
+ def close
+ end
+
+ def flush
end
def dbexists?