# import if old file format found
if(File.exist?("#{@bot.botclass}/karma.rbot"))
- puts "importing old karma data"
+ log "importing old karma data"
IO.foreach("#{@bot.botclass}/karma.rbot") do |line|
if(line =~ /^(\S+)<=>([\d-]+)$/)
item = $1
next if(key == m.sourcenick)
if(change == "++")
@registry[key] += 1
+ if key =~ /^#{@bot.nick}$/i
+ @bot.say m.replyto, @bot.lang.get("thanks")
+ end
elsif(change == "--")
@registry[key] -= 1
end