-# infobot :: Kevin Lenzo 1997-1999
+###
+### Process.pl: Kevin Lenzo 1997-1999
+###
+
#
# process the incoming message
#
}
# User Processing, for all users.
- return 'NOREPLY from userC' if &userCommands() eq 'NOREPLY';
+ return '$noreply from userC' if &userCommands() eq $noreply;
###
# once useless messages have been parsed out, we match them.
if ($addressed) {
my $er = &Modules();
if ($er =~ /\S/) {
- &performStrictReply($er) if ($er ne 'NOREPLY');
+ &performStrictReply($er) if ($er ne $noreply);
return 'SOMETHING 1';
}
# inter-infobot.
if ($msgType =~ /private/ and $message =~ s/^:INFOBOT://) {
### identification.
- &status("infobot <$nuh> identified") unless $infobots{$nuh};
- $infobots{$nuh} = $who;
+ &status("infobot <$nuh> identified") unless $bots{$nuh};
+ $bots{$nuh} = $who;
### communication.
my $author = &getFactInfo($from, "created_by");
if (&IsFlag("m") and $author =~ /^\Q$who\E\!/i) {
&msg($who, "It's not yours to modify.");
- return 'NOREPLY';
+ return $noreply;
}
if ($_ = &getFactoid($to)) {
my $result = &doQuestion($message);
- return 'result is NOREPLY' if ($result eq 'NOREPLY');
+ return 'result is $noreply' if ($result eq $noreply);
if (defined $result and $result ne "") { # question.
&status("question: <$who> $message");