]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
comments and message fixes
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 31 Jan 2011 14:21:15 +0000 (15:21 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 31 Jan 2011 14:25:28 +0000 (15:25 +0100)
data/rbot/plugins/rss.rb
lib/rbot/ircbot.rb
lib/rbot/registry/bdb.rb

index 4280c52ac4018132a571bcc3484c221d9fcaf561..b2d367b0da645a4f1e4b61ad9f60712768513853 100644 (file)
@@ -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)
index 9b6e2d6a548b6889dbbbafa0a3db9533bcb35328..695b7170e6bcd17740cb7a55923912651bf584cd 100644 (file)
@@ -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
index 4457a3693c749f25b5eb52549d4be13b05f6a7be..d1876ac57cf2aad75e9ea284df66fcd1ff77bebe 100644 (file)
@@ -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