summaryrefslogtreecommitdiff
path: root/src/login/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-10 19:04:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-10 19:52:05 +0300
commit3d3f077e6ff51e5e9d388a16bd73a526310918ad (patch)
tree12860243c18585d5a5b704525cb9abbaec15640d /src/login/init.c
parente046ad1c14fcfaf32e8d00617848a45220494c1e (diff)
downloadevol-hercules-3d3f077e6ff51e5e9d388a16bd73a526310918ad.tar.gz
evol-hercules-3d3f077e6ff51e5e9d388a16bd73a526310918ad.tar.bz2
evol-hercules-3d3f077e6ff51e5e9d388a16bd73a526310918ad.tar.xz
evol-hercules-3d3f077e6ff51e5e9d388a16bd73a526310918ad.zip
disconnect in login server if client version < 2.
Diffstat (limited to 'src/login/init.c')
-rw-r--r--src/login/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/login/init.c b/src/login/init.c
index 92b6af6..9aab37d 100644
--- a/src/login/init.c
+++ b/src/login/init.c
@@ -31,7 +31,10 @@ HPExport void plugin_init (void)
session = GET_SYMBOL("session");
sockt = GET_SYMBOL("sockt");
+ login = GET_SYMBOL("login");
+
addPacket(0x7530, 22, login_parse_version, hpParse_Login);
+ addHookPre("login->parse_client_login", elogin_parse_client_login_pre);
}
HPExport void server_preinit (void)