summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-01-31 15:21:15 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-01-31 15:25:28 +0100
commit4d68eabaa8dabaecb5ea4af210acbb4d0b10249f (patch)
treef9a8acf314ca9fcb8266610d1c9f46ed4e09cc18 /lib/rbot
parent182d062906f1951e4f253d395fae88f3db620658 (diff)
comments and message fixes
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/ircbot.rb7
-rw-r--r--lib/rbot/registry/bdb.rb2
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 9b6e2d6a..695b7170 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -186,14 +186,14 @@ class Bot
attr_reader :socket
# bot's object registry, plugins get an interface to this for persistant
- # storage (hash interface tied to a bdb file, plugins use Accessors to store
+ # storage (hash interface tied to a db file, plugins use Accessors to store
# and restore objects in their own namespaces.)
attr_reader :registry
# bot's plugins. This is an instance of class Plugins
attr_reader :plugins
- # bot's httputil help object, for fetching resources via http. Sets up
+ # bot's httputil helper object, for fetching resources via http. Sets up
# proxies etc as defined by the bot configuration/environment
attr_accessor :httputil
@@ -491,11 +491,12 @@ class Bot
if @config['core.run_as_daemon']
$daemonize = true
end
+
case @config["core.db"]
when "bdb"
require 'rbot/registry/bdb'
when "tc"
- require 'rbot/registry/tc'
+ require 'rbot/registry/tc'
else
raise _("Unknown DB adaptor: %s") % @config["core.db"]
end
diff --git a/lib/rbot/registry/bdb.rb b/lib/rbot/registry/bdb.rb
index 4457a369..d1876ac5 100644
--- a/lib/rbot/registry/bdb.rb
+++ b/lib/rbot/registry/bdb.rb
@@ -6,7 +6,7 @@
begin
require 'bdb'
rescue LoadError
- fatal "rbot couldn't load the bdb module, perhaps you need to install it? try: http://www.ruby-lang.org/en/raa-list.rhtml?name=bdb"
+ fatal "rbot couldn't load the bdb module, perhaps you need to install it? try http://www.ruby-lang.org/en/raa-list.rhtml?name=bdb or http://github.com/knu/ruby-bdb"
rescue Exception => e
fatal "rbot couldn't load the bdb module: #{e.pretty_inspect}"
end