]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/remote.rb
first_html_par: build lists 'manually' when using Hpricot
[user/henk/code/ruby/rbot.git] / lib / rbot / core / remote.rb
index 43d883dd8796d5303a614e952cb0fce02c3b05e9..7ffb62e1bb6e5a2e7613e67b22456c486e5ff85e 100644 (file)
 #
 # TODO find a way to manage session id (logging out, manually and/or
 # automatically)
-#
 
 require 'drb/drb'
 
 module ::Irc
+class Bot
 
   module Auth
 
@@ -36,9 +36,9 @@ module ::Irc
       end
     end
 
-    # We extend the AuthManagerClass to handle remote logins
+    # We extend the ManagerClass to handle remote logins
     #
-    class AuthManagerClass
+    class ManagerClass
 
       MAX_SESSION_ID = 2**128 - 1
 
@@ -193,9 +193,7 @@ module ::Irc
 
   end
 
-  class IrcBot
-
-    # The Irc::IrcBot::RemoteObject class represents and object that will take care
+    # The Irc::Bot::RemoteObject class represents and object that will take care
     # of interfacing with remote clients
     #
     # Example client session:
@@ -261,8 +259,6 @@ module ::Irc
       end
     end
 
-  end
-
   module Plugins
 
     # We create a new Ruby module that can be included by BotModules that want to
@@ -310,22 +306,23 @@ module ::Irc
   end
 
 end
+end
 
 class RemoteModule < CoreBotModule
 
   include RemoteCoreBotModule
 
-  BotConfig.register BotConfigBooleanValue.new('remote.autostart',
+  Config.register Config::BooleanValue.new('remote.autostart',
     :default => true,
     :requires_rescan => true,
     :desc => "Whether the remote service provider should be started automatically")
 
-  BotConfig.register BotConfigIntegerValue.new('remote.port',
+  Config.register Config::IntegerValue.new('remote.port',
     :default => 7268, # that's 'rbot'
     :requires_rescan => true,
     :desc => "Port on which the remote interface will be presented")
 
-  BotConfig.register BotConfigStringValue.new('remote.host',
+  Config.register Config::StringValue.new('remote.host',
     :default => '',
     :requires_rescan => true,
     :desc => "Port on which the remote interface will be presented")