X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fbotuser.rb;h=97bab93cc34545c3ed4c875209107eec3dd2624c;hb=40ba5f69f763c47a4cd50439cc8c9937aab80dc4;hp=ab9a8de3f04f4da0dbbc66d60105c9299ec59428;hpb=ba5aaf073e5467b0b71adede32051f9b38c50a19;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb index ab9a8de3..97bab93c 100644 --- a/lib/rbot/botuser.rb +++ b/lib/rbot/botuser.rb @@ -35,7 +35,8 @@ class Bot module Auth Config.register Config::StringValue.new( 'auth.password', - :default => [*?a..?z,*?A..?Z,*?0..?9].sample(8).join, :wizard => true, + :default => [*?a..?z,*?A..?Z,*?0..?9].sample(8).join, :store_default => true, + :wizard => true, :on_change => Proc.new {|bot, v| bot.auth.botowner.password = v}, :desc => _('Password for the bot owner')) Config.register Config::BooleanValue.new( 'auth.login_by_mask',