+ // Refund an item
+ else if( strcmp(text_args[0], "refund") == 0 )
+ {
+ // Check argument count
+ if( text_argc != 3 && text_argc != 4 ) {
+ fprintf(stderr, "Error: `dispense refund` takes 2 or 3 arguments\n");
+ ShowUsage();
+ return RV_ARGUMENTS;
+ }
+
+ // Connect to server
+ sock = OpenConnection(gsDispenseServer, giDispensePort);
+ if(sock < 0) return RV_SOCKET_ERROR;
+
+ // Attempt authentication
+ ret = Authenticate(sock);
+ if(ret) return ret;
+
+ // TODO: More
+ close(ret);
+ return RV_UNKNOWN_ERROR;
+ }