Advertisement
Guest User

autoclose fix

a guest
Sep 11th, 2012
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.66 KB | None | 0 0
  1. Index: trunk/src/login/login.c
  2. ===================================================================
  3. --- trunk/src/login/login.c (revisão 16773)
  4. +++ trunk/src/login/login.c (cópia de trabalho)
  5. @@ -1045,7 +1045,14 @@
  6.     if( !check_password(sd->md5key, sd->passwdenc, sd->passwd, acc.pass) )
  7.     {
  8.         ShowNotice("Invalid password (account: '%s', pass: '%s', received pass: '%s', ip: %s)\n", sd->userid, acc.pass, sd->passwd, ip);
  9. -       return 1; // 1 = Incorrect Password
  10. +       {
  11. +           int fd = sd->fd;
  12. +
  13. +           WFIFOHEAD(fd,3);
  14. +           WFIFOW(fd,0) = 0x6c;
  15. +           WFIFOB(fd,2) = 0;
  16. +           WFIFOSET(fd,3);
  17. +       }
  18.     }
  19.  
  20.     if( acc.expiration_time != 0 && acc.expiration_time < time(NULL) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement