diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2013-04-29 07:37:28 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2013-04-29 07:37:28 +0200 |
commit | 6ba608d67e27b62db1442c1504a144756a7c7244 (patch) | |
tree | e00b6a0dadb6f2434af5790da5dcad99554eff5d /data | |
parent | 095a126c82c0fc886b15296942588aabbf49b4f6 (diff) |
note: dup the keys, not the registry
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/note.rb | 2 |
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 |