Bladeren bron

Added SDEBUG if()

svn: 26
Bryan Drewery 23 jaren geleden
bovenliggende
commit
716e32436a
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 3 2
      src/settings.c

+ 3 - 2
src/settings.c

@@ -13,7 +13,7 @@ extern char *degarble(int, char *);
 char netpass[16], thepass[33], dcc_prefix[1], owners[2048], hubs[2048];
 
 //Change everything..
-#define NETPASS STR("kd8e3nchasd93dk")  //Just 15 random chars here..
+#define NETPASS STR("kd8e3nchasd93dk") //Just 15 random chars here..
 #define THEPASS STR("d166239eb0558fc14c25a0826d20286d") //this md5 hash will be used for various purposes..
 #define DCCPREFIX STR("!") //This is the cmd prefix for dcc, ie: .cmd could be "."
 
@@ -81,5 +81,6 @@ void init_settings() {
   snprintf(netpass, sizeof netpass, NETPASS); 
   snprintf(thepass, sizeof thepass, THEPASS);
   snprintf(dcc_prefix, sizeof dcc_prefix, DCCPREFIX);
-printf("netpass: %s thepass: %s\n", netpass, thepass);
+  if (SDEBUG)
+    printf(STR("netpass: %s thepass: %s\n"), netpass, thepass);
 }