summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-04-09 16:39:10 -0600
committerJared Adams <jaxad0127@gmail.com>2010-04-09 16:52:38 -0600
commit82e86bde167289ebc23ff02054da1ff0c35377f6 (patch)
treec27a43d6ccab8d7d1ab0a8eea53f0006880d5c76
parentd79ca5c109ab12b4c1292fe16d17dab6919722a5 (diff)
downloadtmwa-82e86bde167289ebc23ff02054da1ff0c35377f6.tar.gz
tmwa-82e86bde167289ebc23ff02054da1ff0c35377f6.tar.bz2
tmwa-82e86bde167289ebc23ff02054da1ff0c35377f6.tar.xz
tmwa-82e86bde167289ebc23ff02054da1ff0c35377f6.zip
Change the server version response packet to include flags
Only flag used at the moment is registration enabled/disabled (bit 0x00000001).
-rw-r--r--src/login/login.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 0e0448e..c397212 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -4016,9 +4016,7 @@ int parse_login (int fd)
WFIFOB (fd, 3) = 'T';
WFIFOB (fd, 4) = 'M';
WFIFOB (fd, 5) = 'W';
- WFIFOB (fd, 6) = ' ';
- WFIFOB (fd, 7) = 'e';
- WFIFOW (fd, 8) = 'A';
+ WFIFOL (fd, 6) = new_account_flag ? 1 : 0;
WFIFOSET (fd, 10);
RFIFOSKIP (fd, 2);
break;