X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=src%2FFactoids%2FReply.pl;h=ca542a4e2be916261c13593ee375ecbcb4eeced9;hb=f0a00b56d1497c3b3f0d33e0d57e5d31a0161a55;hp=abbcfae528e2a46ffb6a7e4066a4e737b5c33498;hpb=0a241de1cc04678cd76aaff8a55d449afb99e2f1;p=infobot.git diff --git a/src/Factoids/Reply.pl b/src/Factoids/Reply.pl index abbcfae..ca542a4 100644 --- a/src/Factoids/Reply.pl +++ b/src/Factoids/Reply.pl @@ -1,4 +1,6 @@ -# infobot :: Kevin Lenzo (c) 1997 +### +### Reply.pl: Kevin Lenzo (c) 1997 +### ## # x is y === $lhs $mhs $rhs @@ -131,12 +133,12 @@ sub getReply { # only remove '' and make it an action. } else { # not a short reply - ### infobot-infobot reply. - if (exists $infobots{$nuh} and $rhs !~ /^\s*$/) { + ### bot->bot reply. + if (exists $bots{$nuh} and $rhs !~ /^\s*$/) { return "$lhs $mhs $rhs"; } - ### infobot-person reply. + ### bot->person reply. # result is random if separated by '||'. # rhs is full factoid with '||'. if ($mhs eq "is") { @@ -151,7 +153,7 @@ sub getReply { # fix the person. } else { if ($reply =~ /^you are / or $reply =~ / you are /) { - return 'NOREPLY' if ($addressed); + return $noreply if ($addressed); } } }