-
-# infobot :: Kevin Lenzo (c) 1997
+###
+### Statement.pl: Kevin Lenzo (c) 1997
+###
##
## doStatement --
$in =~ s/^no([, ]+)//i; # 'no, '.
# check if we need to be addressed and if we are
- return 'NOREPLY' unless ($learnok);
+ return $noreply unless ($learnok);
my($urlType) = "";
# acceptUrl.
if (&IsParam("acceptUrl")) {
if ($param{'acceptUrl'} eq 'REQUIRE') { # require url type.
- return 'NOREPLY' if ($urlType eq "");
+ return $noreply if ($urlType eq "");
} elsif ($param{'acceptUrl'} eq 'REJECT') {
&status("REJECTED URL entry") if (&IsParam("VERBOSITY"));
- return 'NOREPLY' unless ($urlType eq "");
+ return $noreply unless ($urlType eq "");
} else {
# OPTIONAL
}
# break if either lhs or rhs is NULL.
if ($lhs eq "" or $rhs eq "") {
- return 'NOREPLY';
+ return $noreply;
}
# lets check if it failed.
&status("IGNORE statement: <$who> $message");
&performReply( &getRandom(keys %{$lang{'confused'}}) );
}
- return 'NOREPLY';
+ return $noreply;
}
- return 'NOREPLY' if (!$addressed and $lhs =~ /\s+/);
+ return $noreply if (!$addressed and $lhs =~ /\s+/);
&status("statement: <$who> $message");
if ($ord > 170 and $ord < 220) {
&status("statement: illegal character '$_' $ord.");
&performAddressedReply("i'm not going to learn illegal characters");
- return 'NOREPLY';
+ return $noreply;
}
}