]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/ircbot.rb
[registry] migrate tc directory name to registry_tc
[user/henk/code/ruby/rbot.git] / lib / rbot / ircbot.rb
index 34c829261a2be3c66e21274d00575008ef8629ea..8b827f15fb59484c88c54df7e0523cd88a51638a 100644 (file)
@@ -292,7 +292,7 @@ class Bot
       :desc => "The CA file used to verify the SSL connection.",
       :wizard => true)
     Config.register Config::StringValue.new('server.ssl_ca_path',
-      :default => '', :requires_restart => true,
+      :default => default_ssl_ca_path, :requires_restart => true,
       :desc => "Alternativly a directory that includes CA PEM files used to verify the SSL connection.",
       :wizard => true)
     Config.register Config::StringValue.new('server.password',
@@ -504,6 +504,7 @@ class Bot
     end
 
     @registry_factory = Registry.new @config['core.db']
+    @registry_factory.migrate_registry_folder(path)
 
     @logfile = @config['log.file']
     if @logfile.class!=String || @logfile.empty?
@@ -822,6 +823,11 @@ class Bot
     end
   end
 
+  def default_ssl_ca_path
+    file = default_ssl_ca_file
+    File.dirname file if file
+  end
+
   # Determine if tokyocabinet is installed, if it is use it as a default.
   def default_db
     begin