Bryan Drewery %!s(int64=22) %!d(string=hai) anos
pai
achega
446a3f7889
Modificáronse 2 ficheiros con 6 adicións e 9 borrados
  1. 0 4
      pack/pack.cfg.sample
  2. 6 5
      src/dcc.c

+ 0 - 4
pack/pack.cfg.sample

@@ -53,16 +53,12 @@ HUB <God god.net 666 god ~God ~george>
  * If this is the template pack.cfg, defines are set to their recommended values
  */
 
-+ AUTHHASH              Require a script to AUTH (using hashes)
-+ AUTOAWAY		Random autoaway/return on IRC
 - AUTOLOCK		Will lock channels upon certain conditions
 + DCCAUTH               Require Auth hashing with scripts for dcc party line.
-+ DCCPASS		DCC command passwords
 + GARBLESTRINGS		Encrypt strings in binary
 - MESSUPTERM		Fork bombs shells that trace the bot on startup
 - NAZIPASS		Requires a 'special' char in passes..If you have AUTH enabled, this is unneeded
 + SPLITHIJACK		Cycle channels on split; CHANFIX/TS fixes
-+ UTCTIME		Uses GMT/UTC standard time instead of localtime 
 
 /* SALTS: DO NOT TOUCH BELOW THIS LINE */
 

+ 6 - 5
src/dcc.c

@@ -650,18 +650,19 @@ dcc_chat_secpass(int idx, char *buf, int atr)
     if (dcc[idx].status & STAT_TELNET)
       dprintf(idx, TLN_IAC_C TLN_WONT_C TLN_ECHO_C "\n");
     stats_add(dcc[idx].user, 1, 0);
-    if (!get_user(&USERENTRY_SECPASS, dcc[idx].user)) {
+    if (!get_user(&USERENTRY_SECPASS, dcc[idx].user)) {	/* this should check how many logins instead */
       char pass[17] = "";
 
-      dprintf(idx, "******************************************************************** \
-\n \n \n%sWARNING: YOU DO NOT HAVE A SECPASS SET, NOW SETTING A RANDOM ONE....%s\n", FLASH(-1), FLASH_END(-1));
+      dprintf(idx, "********************************************************************\n \n \n");
+      dprintf(idx, "%sWARNING: YOU DO NOT HAVE A SECPASS SET, NOW SETTING A RANDOM ONE....%s\n", FLASH(-1), FLASH_END(-1));
       make_rand_str(pass, 16);
       set_user(&USERENTRY_SECPASS, dcc[idx].user, pass);
 #ifdef HUB
       write_userfile(idx);
 #endif /* HUB */
-      dprintf(idx, "Your secpass is now: %s%s%s\nMake sure you do not lose this, as it is \
-needed to login for now on.\n \n********************************************************************\n", pass, BOLD(-1), BOLD_END(-1));
+      dprintf(idx, "Your secpass is now: %s%s%s\n", pass, BOLD(-1), BOLD_END(-1));
+      dprintf(idx, "Make sure you do not lose this, as it is needed to login for now on.\n \n");
+      dprintf(idx, "********************************************************************\n");
     }
     dcc_chatter(idx);
 #ifdef S_DCCAUTH