diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-23 12:35:58 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-23 12:35:58 +0000 |
commit | d2cd565d48bc38cba05fa311b8e57d7c93499d50 (patch) | |
tree | ae6532a47da6ab3d5ab300def3d8228f0db6a880 /lib/rbot/botuser.rb | |
parent | 3ae571e67d5a40e7f9fb4694b16e6feb1ec1466e (diff) |
New Auth module: keep auth.password and botowner passwords in sync when changing them
Diffstat (limited to 'lib/rbot/botuser.rb')
-rw-r--r-- | lib/rbot/botuser.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb index d859e9c3..5ae7fc2b 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',
|