From f94608aff517516dfca549d261c11a697f394028 Mon Sep 17 00:00:00 2001
From: John Hodge <tpg@ucc.asn.au>
Date: Mon, 17 Aug 2015 16:42:07 +0800
Subject: [PATCH] Client - Fix #8 using another hack

---
 src/client/main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/client/main.c b/src/client/main.c
index 3c017a4..7a82c09 100644
--- a/src/client/main.c
+++ b/src/client/main.c
@@ -855,7 +855,9 @@ int ParseArguments(int argc, char *argv[])
 		// If it doesn't start with a '-', or -- has been seen
 		// XXX: Hack - If parsing "user type", don't parse - options 
 		bool hack_usertype = (i > 2 && strcmp(argv[i-2], "user") == 0 && strcmp(argv[i-1], "type") == 0);
-		if( rest_free || arg[0] != '-' || hack_usertype )
+		// XXX: Hack - Treat negative numbers as free
+		bool hack_is_int = (arg[0] == '-' && isdigit(arg[1]) != 0);
+		if( rest_free || arg[0] != '-' || hack_usertype || hack_is_int )
 		{
 			if( giTextArgc == MAX_TXT_ARGS )
 			{
-- 
GitLab