summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-29 22:38:00 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-29 22:38:00 +0200
commit69df7b7b3f37e828b2cb0967df75a675458f710b (patch)
treea2ae4916b592c558d09f887adfaef04a1eb93380 /data/rbot
parentd4ef91d819164d3a46dc2ce9e4a7ce14b6f5b043 (diff)
seen plugin: fix seen data for nick change
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/seen.rb8
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",