]> git.donarmstrong.com Git - infobot.git/commitdiff
changed FlatArg to ArrayArgs to make more sense. by default, we use flat-args
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 9 Feb 2001 13:40:01 +0000 (13:40 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 9 Feb 2001 13:40:01 +0000 (13:40 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@371 c11ca15a-4712-0410-83d8-924469b57eb5

src/CommandStubs.pl

index c942c9dd8687246351d4aba983476f2011964d9c..7166b6faf8626d2ec73ca737e0bce57941627bb6 100644 (file)
@@ -95,7 +95,7 @@ sub parseCmdHook {
        if (exists $hash{'Forker'}) {
            $hash{'Identifier'} .= "-" if ($hash{'Forker'} eq "NULL");
 
-           if (exists $hash{'FlatArg'} and $hash{'FlatArg'} == 0) {
+           if (exists $hash{'ArrayArgs'}) {
                &Forker($hash{'Identifier'}, sub { \&{$hash{'CODEREF'}}(@args) } );
            } else {
                &Forker($hash{'Identifier'}, sub { \&{$hash{'CODEREF'}}($flatarg) } );
@@ -108,8 +108,7 @@ sub parseCmdHook {
 
            ### TODO: check if CODEREF exists.
 
-           if (exists $hash{'FlatArg'} and $hash{'FlatArg'} == 0) {
-               &status("CmdHook: using args as array.");
+           if (exists $hash{'ArrayArgs'}) {
                &{$hash{'CODEREF'}}(@args);
            } else {
                &{$hash{'CODEREF'}}($flatarg);