little bug with colors
little bug with colors

--- a/src/config.c
+++ b/src/config.c
@@ -25,6 +25,9 @@
 	if(argc == 2 && atoi(argv[1]))
 		srv->port = atoi(argv[1]); /* TO here */
 
+
+	srv->allow_colors_dft = ALLOW_COLORS_DFT_CLIENTS;
+
 	srv->config_file = NULL;
 	if(!read_opts(srv, argc, argv)) /* if no opts except -f */
 		read_config(srv); /* Read config file */
@@ -42,7 +45,6 @@
 
 	/* now client configuration */
 	srv->num_clients = 0;
-	srv->allow_colors_dft = ALLOW_COLORS_DFT_CLIENTS;
 }
 
 void
@@ -157,10 +159,14 @@
 		srv->port = strtoul(arg, NULL, 10);
 	}
 	else if(!strcmp(opt, "default-color")) {
-		if(*arg == 'Y' || *arg == 'y' || *arg == '1' || *arg == 't')
+		if(*arg == 'Y' || *arg == 'y' || *arg == '1' || *arg == 't') {
+			puts("COLORS ENABLED");
 			srv->allow_colors_dft = 1;
-		else
+		}
+		else {
+			puts("COLORS DISABLED");
 			srv->allow_colors_dft = 0;
+		}
 	}
 	else {
 		fprintf(stderr, "Unknown option: %s (arg: %s, line: %d)\n",

--- a/src/tnc.conf
+++ b/src/tnc.conf
@@ -1,5 +1,6 @@
 #This is a commentary
 
-users_file=./passwd
-allow_registering=YES
+users-file=./passwd
+allow-registering=YES
+default-color=YES