summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
authorVoker57 <voker57@gmail.com>2010-03-15 00:19:46 +0300
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-03-16 14:54:17 +0100
commite1e90efaf2e9d9d09046e8877c276cb209c5e614 (patch)
treeedf5db6faac4151078aa18ff7577874751d13b34 /lib/rbot/ircbot.rb
parentca51b3d47107c385fd6f7ece8893787179ac8acb (diff)
Tokyo Cabinet DB backend
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r--lib/rbot/ircbot.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 68dd4b34..47d3063c 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -420,9 +420,9 @@ class Bot
Config.register Config::StringValue.new('core.db',
:default => "bdb",
:wizard => true, :default => "bdb",
- :validate => Proc.new { |v| ["bdb"].include? v },
+ :validate => Proc.new { |v| ["bdb", "tc"].include? v },
:requires_restart => true,
- :desc => "DB adaptor to use for storing settings and plugin data. Options are: bdb (Berkeley DB, stable adaptor, but troublesome to install and unmaintained)")
+ :desc => "DB adaptor to use for storing settings and plugin data. Options are: bdb (Berkeley DB, stable adaptor, but troublesome to install and unmaintained), tc (Tokyo Cabinet, new adaptor, fast and furious, but may be not available and contain bugs)")
@argv = params[:argv]
@run_dir = params[:run_dir] || Dir.pwd
@@ -494,6 +494,8 @@ class Bot
case @config["core.db"]
when "bdb"
require 'rbot/registry/bdb'
+ when "tc"
+ require 'rbot/registry/tc'
else
raise _("Unknown DB adaptor: %s") % @config["core.db"]
end