Server - Added bac to mark zero priced slots as erroring
[tpg/opendispense2.git] / src / server / server.c
index 66d1062..b7ca068 100644 (file)
@@ -713,6 +713,8 @@ void Server_int_SendItem(tClient *Client, tItem *Item)
                }
        }
        
+       if( Item->Price == 0 )
+               status = "error";
        // KNOWN HACK: Naming a slot 'dead' disables it
        if( strcmp(Item->Name, "dead") == 0 )
                status = "sold";        // Another status?

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