diff options
author | Dennis Friis <peavey@inspircd.org> | 2009-05-25 05:31:24 +0200 |
---|---|---|
committer | Dennis Friis <peavey@inspircd.org> | 2009-05-25 05:34:53 +0200 |
commit | 3f0e5c66f9bce7581b7fa56d12accd13e0725c88 (patch) | |
tree | 58a5ba4ead64c88276ab67d96d9d5d39c82bf7f9 /src/login | |
parent | 2fa5e92843d5141102d84ac7e7a2da0a731aadbd (diff) | |
download | tmwa-3f0e5c66f9bce7581b7fa56d12accd13e0725c88.tar.gz tmwa-3f0e5c66f9bce7581b7fa56d12accd13e0725c88.tar.bz2 tmwa-3f0e5c66f9bce7581b7fa56d12accd13e0725c88.tar.xz tmwa-3f0e5c66f9bce7581b7fa56d12accd13e0725c88.zip |
Send the 2741 reply packet directly back to the requesting char server.
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/login.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/login/login.c b/src/login/login.c index 29e3959..bf28e48 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1709,11 +1709,10 @@ int parse_fromchar(int fd) { break; } } - unsigned char buf[16]; - WBUFW(buf,0) = 0x2741; - WBUFL(buf,2) = acc; - WBUFB(buf,6) = status; // 0: acc not found, 1: success, 2: password mismatch, 3: pass too short - charif_sendallwos(-1, buf, 7); + WFIFOW(fd,0) = 0x2741; + WFIFOL(fd,2) = acc; + WFIFOB(fd,6) = status; // 0: acc not found, 1: success, 2: password mismatch, 3: pass too short + WFIFOSET(fd,7); } RFIFOSKIP(fd, 54); |