From 69df7b7b3f37e828b2cb0967df75a675458f710b Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 29 Apr 2008 22:38:00 +0200 Subject: seen plugin: fix seen data for nick change --- data/rbot/plugins/seen.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'data/rbot') 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", -- cgit v1.2.3