Explorar o código

* Broken login code fixed

svn: 796
Bryan Drewery %!s(int64=22) %!d(string=hai) anos
pai
achega
f704122b0e
Modificáronse 2 ficheiros con 7 adicións e 4 borrados
  1. 1 0
      doc/UPDATES
  2. 6 4
      src/dcc.c

+ 1 - 0
doc/UPDATES

@@ -7,6 +7,7 @@ This is a summary of ChangeLog basically.
 4.Fixed two bugs in the auto-email code for bad uname.
 5.Added cmds: encrypt, decrypt, md5, sha1.
 6.Added AUTH cmds: md5, sha1.
+7.First time logins were broken.
 
 1.1.3
 1.Fixed a very fatal bug with channel ctcps.

+ 6 - 4
src/dcc.c

@@ -609,16 +609,18 @@ static void dcc_chat_secpass(int idx, char *buf, int atr)
         char pass[17] = "";
 
         dprintf(idx, "******************************************************************** \
-                      \n \n \n%sWARNING: YOU DO NOT HAVE A SECPASS SET, NOW SETTING A RANDOM ONE....%s\n",
-                     FLASH(idx), FLASH_END(idx));
+\n \n \n%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", 
-                    BOLD(idx), BOLD_END(idx));
+needed to login for now on.\n \n********************************************************************\n", 
+                    pass,
+                    BOLD(-1), 
+                    BOLD_END(-1));
       }
       dcc_chatter(idx);
 #ifdef S_DCCAUTH