From 82e86bde167289ebc23ff02054da1ff0c35377f6 Mon Sep 17 00:00:00 2001
From: Jared Adams <jaxad0127@gmail.com>
Date: Fri, 9 Apr 2010 16:39:10 -0600
Subject: Change the server version response packet to include flags

Only flag used at the moment is registration enabled/disabled (bit 0x00000001).
---
 src/login/login.c | 4 +---
 1 file changed, 1 insertion(+), 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;
-- 
cgit v1.2.3-70-g09d2