diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-29 22:38:00 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-29 22:38:00 +0200 |
commit | 69df7b7b3f37e828b2cb0967df75a675458f710b (patch) | |
tree | a2ae4916b592c558d09f887adfaef04a1eb93380 /data/rbot | |
parent | d4ef91d819164d3a46dc2ce9e4a7ce14b6f5b043 (diff) |
seen plugin: fix seen data for nick change
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/seen.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/data/rbot/plugins/seen.rb b/data/rbot/plugins/seen.rb index 704b8324..18d75d7e 100644 --- a/data/rbot/plugins/seen.rb +++ b/data/rbot/plugins/seen.rb @@ -38,10 +38,10 @@ class SeenPlugin < Plugin nil, m.message.dup) elsif m.kind_of?(NickMessage) return if m.address? - @registry[m.message] = Saw.new(m.sourcenick.dup, Time.new, "NICK", - nil, m.message.dup) - @registry[m.sourcenick] = Saw.new(m.sourcenick.dup, Time.new, "NICK", - nil, m.message.dup) + @registry[m.oldnick] = Saw.new(m.oldnick, Time.new, "NICK", + nil, m.newnick) + @registry[m.newnick] = Saw.new(m.oldnick, Time.new, "NICK", + nil, m.newnick) elsif m.kind_of?(PartMessage) return if m.address? @registry[m.sourcenick] = Saw.new(m.sourcenick.dup, Time.new, "PART", |