From f43c2b1db6791a6076aa1768d45fe62302f44d7f Mon Sep 17 00:00:00 2001 From: dms Date: Fri, 9 Feb 2001 13:10:32 +0000 Subject: [PATCH] substitute the right vars in getReply when used in tell. found by asuffield git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@367 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/UserExtra.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/blootbot/src/UserExtra.pl b/blootbot/src/UserExtra.pl index 9a5fa42..dd5a9e7 100644 --- a/blootbot/src/UserExtra.pl +++ b/blootbot/src/UserExtra.pl @@ -319,14 +319,15 @@ sub tell { return; } - # ... + my $oldwho = $who; + my $oldmtype = $msgType; + $who = $target; my $result = &doQuestion($tell_obj); - # ^ returns '0' if nothing was found. + # ^ returns '0' if nothing was found. + $who = $oldwho; # no such factoid. if ($result =~ /^0?$/) { - my $oldwho = $who; - my $oldmtype = $msgType; $who = $target; $msgType = "private"; -- 2.39.5