- def help(plugin, topic="")
- "note <nick> <string> => stores a note (<string>) for <nick>"
+
+ Note = Struct.new('Note', :time, :from, :private, :text)
+
+ Config.register Config::BooleanValue.new 'note.private_message',
+ :default => false,
+ :desc => 'Send all notes in private messages instead of channel messages.'
+
+ def initialize
+ super
+ return if @registry.length < 1
+ debug 'Checking registry for old-formatted notes...'
+ n = 0
+ @registry.keys.each do |key|
+ unless key == key.downcase
+ @registry[key.downcase] = @registry[key] + (@registry[key.downcase] || [])
+ @registry.delete key
+ n += 1
+ end
+ end
+ debug "#{n} entries converted and merged."