diff options
author | Dennis Friis <peavey@inspircd.org> | 2009-05-25 01:00:38 +0200 |
---|---|---|
committer | Dennis Friis <peavey@inspircd.org> | 2009-05-25 05:34:53 +0200 |
commit | 6112cf9242b0b33f529ebe384cc597ac06b089c3 (patch) | |
tree | 002d3968e4dd80d215f6c107e95b21283833af38 /src | |
parent | 8e171b1546aee046967fd01752432481c1e2dc2f (diff) | |
download | tmwa-6112cf9242b0b33f529ebe384cc597ac06b089c3.tar.gz tmwa-6112cf9242b0b33f529ebe384cc597ac06b089c3.tar.bz2 tmwa-6112cf9242b0b33f529ebe384cc597ac06b089c3.tar.xz tmwa-6112cf9242b0b33f529ebe384cc597ac06b089c3.zip |
Add inter protocol code for password change reply login->char->user.
Diffstat (limited to 'src')
-rw-r--r-- | src/char/char.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c index 4717479..1155253 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1871,6 +1871,30 @@ int parse_tologin(int fd) { RFIFOSKIP(fd,RFIFOW(fd,2)); break; + case 0x2741: // change password reply + if (RFIFOREST(fd) < 7) + return 0; + { + int acc, status, i; + acc = RFIFOL(fd,2); + status = RFIFOB(fd,6); + + for(i = 0; i < fd_max; i++) { + if (session[i] && (sd = session[i]->session_data)) { + if (sd->account_id == acc) { + WBUFW(i,0) = 0x62; + WBUFL(i,2) = acc; + WBUFB(i,6) = status; + WFIFOSET(i, 7); + break; + } + } + } + } + RFIFOSKIP(fd, 7); + break; + + default: session[fd]->eof = 1; return 0; |