diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-24 08:08:35 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-24 08:08:35 +0000 |
commit | d82b04ba5d10cff7f9b601fc6d4b2b01795016f7 (patch) | |
tree | b6d3ee368876aa805bafaedf57bea43c57a5baec /lib | |
parent | e4d2961c1e0af6330ba49252ed0245a98514a270 (diff) |
core/userdata: always store nick-based data
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/core/userdata.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rbot/core/userdata.rb b/lib/rbot/core/userdata.rb index 0164f659..8a056820 100644 --- a/lib/rbot/core/userdata.rb +++ b/lib/rbot/core/userdata.rb @@ -80,9 +80,8 @@ class UserDataModule < CoreBotModule iu = user.to_irc_user bu = iu.botuser - if bu.transient? or bu.default? - @ircuser[iu.nick] = h - else + @ircuser[iu.nick] = h + unless bu.transient? or bu.default? @botuser[bu.username] = h end end |