# File rbot/plugins/karma2.rb, line 65 def privmsg(m) unless(m.params) m.reply "incorrect usage: " + m.plugin end if(m.params =~ /^(?:for\s+)?(\S+?)\??$/) thing = $1 karma = @karmas[thing] if(karma != 0) m.reply "karma for #{thing}: #{@karmas[thing]}" else m.reply "#{thing} has neutral karma" end end end