]> git.donarmstrong.com Git - infobot.git/commitdiff
pipes in nicks
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 31 May 2005 05:50:24 +0000 (05:50 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 31 May 2005 05:50:24 +0000 (05:50 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1226 c11ca15a-4712-0410-83d8-924469b57eb5

src/Factoids/Question.pl

index b3c7e238bf9cffe9814401499d0847a10e7bbe3a..c269117a7f423228a0a9069a9f5761729698ce84 100644 (file)
@@ -252,9 +252,14 @@ sub factoidArgs {
        # end of update stats.
 
        $result = $r;
+
        $result =~ s/^\((.*?)\): //;
+       my $vars = $1;
+
+       # start nasty hack to get partial &getReply() functionality.
+       $result = &SARit($result);
 
-       foreach ( split(',', $1) ) {
+       foreach ( split(',', $vars) ) {
            my $val = $vals[$i];
 #          &DEBUG("val => $val");
 
@@ -285,8 +290,7 @@ sub factoidArgs {
            $i++;
        }
 
-       # nasty hack to get partial &getReply() functionality.
-       $result = &SARit($result);
+       # rest of nasty hack to get partial &getReply() functionality.
        $result =~ s/^\s*<action>\s*(.*)/\cAACTION $1\cA/i;
        $result =~ s/^\s*<reply>\s*//i;