]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
core/userdata: always store nick-based data
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 24 Sep 2007 08:08:35 +0000 (08:08 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 24 Sep 2007 08:08:35 +0000 (08:08 +0000)
lib/rbot/core/userdata.rb

index 0164f659e244e5e21068b7f7a82f2ec0f7ce63a8..8a05682047f21f79584481aa12ae797dcb77dff1 100644 (file)
@@ -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