Updated protocol def
[tpg/opendispense2.git] / src / server / server.c
index af9dc34..875dd04 100644 (file)
@@ -208,7 +208,11 @@ void Server_HandleClient(int Socket, int bTrusted)
                        char    *ret;
                        *eol = '\0';
                        ret = Server_ParseClientCommand(&clientInfo, start);
-                       printf("ret = %s", ret);
+                       
+                       #if DEBUG_TRACE_CLIENT
+                       //printf("ret = %s", ret);
+                       #endif
+                       
                        // `ret` is a string on the heap
                        send(Socket, ret, strlen(ret), 0);
                        free(ret);
@@ -555,7 +559,8 @@ char *Server_Cmd_ADD(tClient *Client, char *Args)
 
        // Parse ammount
        iAmmount = atoi(ammount);
-       if( iAmmount == 0 && ammount[0] != '0' )        return strdup("407 Invalid Argument, ammount must be > zero\n");
+       if( iAmmount == 0 && ammount[0] != '0' )
+               return strdup("407 Invalid Argument\n");
 
        // Do give
        switch( DispenseAdd(uid, Client->UID, iAmmount, reason) )

UCC git Repository :: git.ucc.asn.au