From d82b04ba5d10cff7f9b601fc6d4b2b01795016f7 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 24 Sep 2007 08:08:35 +0000 Subject: [PATCH] core/userdata: always store nick-based data --- lib/rbot/core/userdata.rb | 5 ++--- 1 file 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 -- 2.39.5