]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/remote.rb
irclog core module: skip, don't die when unable to open logfile
[user/henk/code/ruby/rbot.git] / lib / rbot / core / remote.rb
index 7ced878f57e7d4c8f230627688360d94e8afcacf..7157195f914f72a64c446134a7a7e11dcf72c2b3 100644 (file)
@@ -4,8 +4,6 @@
 # :title: Remote service provider for rbot
 #
 # Author:: Giuseppe Bilotta (giuseppe.bilotta@gmail.com)
-# Copyright:: Copyright (c) 2006 Giuseppe Bilotta
-# License:: GPLv2
 #
 # From an idea by halorgium <rbot@spork.in>.
 #
@@ -15,6 +13,7 @@
 require 'drb/drb'
 
 module ::Irc
+class Bot
 
   module Auth
 
@@ -35,9 +34,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
 
@@ -192,8 +191,6 @@ module ::Irc
 
   end
 
-  class Bot
-
     # The Irc::Bot::RemoteObject class represents and object that will take care
     # of interfacing with remote clients
     #
@@ -260,8 +257,6 @@ module ::Irc
       end
     end
 
-  end
-
   module Plugins
 
     # We create a new Ruby module that can be included by BotModules that want to
@@ -309,25 +304,26 @@ 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',
-    :default => '',
+  Config.register Config::StringValue.new('remote.host',
+    :default => '127.0.0.1',
     :requires_rescan => true,
-    :desc => "Port on which the remote interface will be presented")
+    :desc => "Host on which the remote interface will be presented")
 
   def initialize
     super