X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fnote.rb;h=e0a7be293a05a192375e4aed7e03cebe72ad347c;hb=836cf49c210ebfeb443861d26379a81b333c2c78;hp=59e1e6a0a175adbcc39a318c66fada8e850d86a6;hpb=095a126c82c0fc886b15296942588aabbf49b4f6;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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