summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2013-04-29 07:37:28 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2013-04-29 07:37:28 +0200
commit6ba608d67e27b62db1442c1504a144756a7c7244 (patch)
treee00b6a0dadb6f2434af5790da5dcad99554eff5d /data
parent095a126c82c0fc886b15296942588aabbf49b4f6 (diff)
note: dup the keys, not the registry
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/note.rb b/data/rbot/plugins/note.rb
index 59e1e6a0..e0a7be29 100644
--- a/data/rbot/plugins/note.rb
+++ b/data/rbot/plugins/note.rb
@@ -21,7 +21,7 @@ class NotePlugin < Plugin
return if @registry.length < 1
debug 'Checking registry for old-formatted notes...'
n = 0
- @registry.dup.each_key do |key|
+ @registry.keys.each do |key|
unless key == key.downcase
@registry[key.downcase] = @registry[key] + (@registry[key.downcase] || [])
@registry.delete key