From 6ba608d67e27b62db1442c1504a144756a7c7244 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 29 Apr 2013 07:37:28 +0200 Subject: note: dup the keys, not the registry --- data/rbot/plugins/note.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') 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 -- cgit v1.2.3