aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-21 05:16:29 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-21 05:16:29 -0700
commit349371e4c13e619b787fb4ab5a3dfcde95fd355e (patch)
tree49a45f6f0f672745dfdce19f4003f5f3c54870cf /core
parent39dfb870d9a54d63f24a150e995b6da44f81ba43 (diff)
downloaddinobot-349371e4c13e619b787fb4ab5a3dfcde95fd355e.tar.gz
dinobot-349371e4c13e619b787fb4ab5a3dfcde95fd355e.tar.xz
Persistent storing of admin list (allows reload).
Diffstat (limited to 'core')
-rw-r--r--core/store.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/store.rb b/core/store.rb
index 4d5e9a7..856acee 100644
--- a/core/store.rb
+++ b/core/store.rb
@@ -6,6 +6,7 @@ module Dinobot
attr_accessor :data
def initialize(file)
+ Dir.mkdir(File.dirname(file)) unless Dir.exist?(File.dirname(file))
@store = PStore.new(file, true)
read