From 58e1c73deeb78501170f74b68d43721f2079c80e Mon Sep 17 00:00:00 2001 From: Jay Thomas Date: Sat, 27 Apr 2013 02:27:19 -0400 Subject: [PATCH] note: skip merging nil keys --- data/rbot/plugins/note.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/rbot/plugins/note.rb b/data/rbot/plugins/note.rb index 227beaa7..8b6e5272 100644 --- a/data/rbot/plugins/note.rb +++ b/data/rbot/plugins/note.rb @@ -14,12 +14,12 @@ class NotePlugin < Plugin def initialize super - return if @registry.nil? or @registry.length < 1 + return if @registry.length < 1 debug 'Checking registry for old-formatted notes...' n = 0 @registry.dup.each_key do |key| unless key == key.downcase - @registry[key.downcase] = @registry[key] + @registry[key.downcase] + @registry[key.downcase] = @registry[key] + (@registry[key.downcase] || []) @registry.delete key n += 1 end -- 2.32.0.93.g670b81a890