X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Frbot%2Fbotuser.rb;h=6131a7b76436cbb6a5f4be9856d71aa5694f0226;hb=7205060ebc35daf26a22ff6453b4faef477aaca7;hp=d859e9c3f3f1d74e963e4a248f533ef9d8204da4;hpb=fd4fdf6c4ac9a3b55cc7a8ab1cf535d64416ddf8;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb index d859e9c3..6131a7b7 100644 --- a/lib/rbot/botuser.rb +++ b/lib/rbot/botuser.rb @@ -19,6 +19,7 @@ module Irc BotConfig.register BotConfigStringValue.new( 'auth.password', :default => 'rbotauth', :wizard => true, + :on_change => Proc.new {|bot, v| bot.auth.botowner.password = v}, :desc => _('Password for the bot owner')) BotConfig.register BotConfigBooleanValue.new( 'auth.login_by_mask', :default => 'true', @@ -548,7 +549,7 @@ module Irc def load_array(ary, forced) unless ary - warn "Tried to load an empty array" + warning "Tried to load an empty array" return end raise "Won't load with unsaved changes" if @has_changes and not forced @@ -627,7 +628,7 @@ module Irc # def autologin(user) ircuser = user.to_irc_user - debug "Trying to autlogin #{ircuser}" + debug "Trying to autologin #{ircuser}" return @botusers[ircuser] if @botusers.has_key?(ircuser) @allbotusers.each { |n, bu| debug "Checking with #{n}"