- if ($message =~ /^(\S+)(--|\+\+)\s*$/ and $addressed) {
- return '' unless (&hasParam("karma"));
-
- my($term,$inc) = (lc $1,$2);
-
- if ($msgType !~ /public/i) {
- &msg($who, "karma must be done in public!");
- return;
- }
+ if ($msgType =~ /public/i && $message =~ /^(\S+)(--|\+\+)\s*$/ &&
+ $addressed && &IsChanConfOrWarn("karma")
+ ) {
+ # to request factoids such as "g++" or "libstdc++", append "?" to the query.
+ my ($term,$inc) = (lc $1,$2);