summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/rss.rb2
-rw-r--r--lib/rbot/ircbot.rb7
-rw-r--r--lib/rbot/registry/bdb.rb2
3 files changed, 6 insertions, 5 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index 4280c52a..b2d367b0 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -331,7 +331,7 @@ class RSSFeedsPlugin < Plugin
:desc => "Whether to display links from the text of a feed item.")
# Make an 'unique' ID for a given item, based on appropriate bot options
- # Currently only suppored is bot.config['rss.show_updated']: when false,
+ # Currently only supported is bot.config['rss.show_updated']: when false,
# only the guid/link is accounted for.
def make_uid(item)
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