summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-04 01:50:38 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-04 01:50:38 +0000
commit8e0ee28c87a38ddc266b2d63b6b1c34cb99875dd (patch)
treead26bc525ff27fa95b4da393f998e0b6add8d112
parent0d5d3a20e1185e162102c7b8bea87962729f910a (diff)
New Auth Framework: BotUser data is now actually saved/restored
-rw-r--r--lib/rbot/botuser.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb
index dc019655..c3c37a50 100644
--- a/lib/rbot/botuser.rb
+++ b/lib/rbot/botuser.rb
@@ -308,7 +308,8 @@ module Irc
:netmasks => @netmasks,
:perm => @perm,
:login_by_mask => @login_by_mask,
- :autologin => @autologin
+ :autologin => @autologin,
+ :data => @data
}
end
@@ -344,6 +345,7 @@ module Irc
@perm = h[:perm] if h.has_key?(:perm)
@login_by_mask = h[:login_by_mask] if h.has_key?(:login_by_mask)
@autologin = h[:autologin] if h.has_key?(:autologin)
+ @data = h[:data] if h.has_key?(:data)
end
# This method sets the password if the proposed new password