From 542bdfabcdad382e6b72de5a7f416432d9736da8 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/blootbot@367 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/UserExtra.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/UserExtra.pl b/src/UserExtra.pl index 9a5fa42..dd5a9e7 100644 --- a/src/UserExtra.pl +++ b/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