diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-01-31 15:21:15 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-01-31 15:25:28 +0100 |
commit | 4d68eabaa8dabaecb5ea4af210acbb4d0b10249f (patch) | |
tree | f9a8acf314ca9fcb8266610d1c9f46ed4e09cc18 | |
parent | 182d062906f1951e4f253d395fae88f3db620658 (diff) |
comments and message fixes
-rw-r--r-- | data/rbot/plugins/rss.rb | 2 | ||||
-rw-r--r-- | lib/rbot/ircbot.rb | 7 | ||||
-rw-r--r-- | lib/rbot/registry/bdb.rb | 2 |
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 |