errr, no idea?
authorpaulr <me@pjr.cc>
Thu, 20 Jan 2011 03:04:56 +0000 (14:04 +1100)
committerpaulr <me@pjr.cc>
Thu, 20 Jan 2011 03:04:56 +0000 (14:04 +1100)
authserver/usercmd.php

index 3525cbe..d24157e 100644 (file)
@@ -107,7 +107,12 @@ switch($argv[1]) {
                break;
        case "add":
                $return = $myAC->addUser($argv[2]);
-               echo "Created user, ".$argv[2]." returned $return\n";
+               if($return) {
+                       echo "Created user, ".$argv[2]."\n";
+               } else {
+                       echo "Failed to create user, ".$argv[2]."\n";
+               }
+                
                break;
        case "delete":
                $res = $myAC->deleteUser($argv[2]);