]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/botuser.rb
* move 'version' help to the module that actually supports the command
[user/henk/code/ruby/rbot.git] / lib / rbot / botuser.rb
index d859e9c3f3f1d74e963e4a248f533ef9d8204da4..6131a7b76436cbb6a5f4be9856d71aa5694f0226 100644 (file)
@@ -19,6 +19,7 @@ module Irc
 \r
     BotConfig.register BotConfigStringValue.new( 'auth.password',\r
       :default => 'rbotauth', :wizard => true,\r
+      :on_change => Proc.new {|bot, v| bot.auth.botowner.password = v},\r
       :desc => _('Password for the bot owner'))\r
     BotConfig.register BotConfigBooleanValue.new( 'auth.login_by_mask',\r
       :default => 'true',\r
@@ -548,7 +549,7 @@ module Irc
 \r
       def load_array(ary, forced)\r
         unless ary\r
-          warn "Tried to load an empty array"\r
+          warning "Tried to load an empty array"\r
           return\r
         end\r
         raise "Won't load with unsaved changes" if @has_changes and not forced\r
@@ -627,7 +628,7 @@ module Irc
       #\r
       def autologin(user)\r
         ircuser = user.to_irc_user\r
-        debug "Trying to autlogin #{ircuser}"\r
+        debug "Trying to autologin #{ircuser}"\r
         return @botusers[ircuser] if @botusers.has_key?(ircuser)\r
         @allbotusers.each { |n, bu|\r
           debug "Checking with #{n}"\r