Fixed bad coke status (slots not erroring if machine is unresponsive)
[tpg/opendispense2.git] / src / server / server.c
index 6266bc8..01e2d84 100644 (file)
@@ -303,7 +303,7 @@ void Server_ParseClientCommand(tClient *Client, char *CommandString)
        
        if( Server_int_ParseArgs(1, CommandString, &command, &args, NULL) )
        {
-               printf("command=%s, args=%s\n", command, args);
+//             printf("command=%s, args=%s\n", command, args);
                // Is this an error? (just ignore for now)
                //args = "";
        }
@@ -497,7 +497,7 @@ void Server_int_SendItem(tClient *Client, tItem *Item)
        
        if( Item->Handler->CanDispense )
        {
-               switch(Item->Handler->CanDispense(Item->ID, Client->UID))
+               switch(Item->Handler->CanDispense(Client->UID, Item->ID))
                {
                case  0:        status = "avail";       break;
                case  1:        status = "sold";        break;
@@ -1221,7 +1221,6 @@ int Server_int_ParseArgs(int bUseLongLast, char *ArgStr, ...)
        
        while( (dest = va_arg(args, char **)) )
        {
-               printf(" dest = %p\n", dest);
                // Trim leading spaces
                while( *ArgStr == ' ' || *ArgStr == '\t' )
                        ArgStr ++;

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