summaryrefslogtreecommitdiff
path: root/src/admin/ladmin.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-04-18 08:38:18 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-04-18 08:38:18 -0700
commitb0d3b261f454e921f90a3a2c748731d3379e2db7 (patch)
treeb557ba4767fe7b00465f451b3be057721baf1156 /src/admin/ladmin.cpp
parentae7b06ff8ad775a945bd677effd72b7fafa13d8d (diff)
downloadtmwa-b0d3b261f454e921f90a3a2c748731d3379e2db7.tar.gz
tmwa-b0d3b261f454e921f90a3a2c748731d3379e2db7.tar.bz2
tmwa-b0d3b261f454e921f90a3a2c748731d3379e2db7.tar.xz
tmwa-b0d3b261f454e921f90a3a2c748731d3379e2db7.zip
Die sensibly, take 2
Diffstat (limited to 'src/admin/ladmin.cpp')
-rw-r--r--src/admin/ladmin.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/admin/ladmin.cpp b/src/admin/ladmin.cpp
index 0d53ff4..9bbd710 100644
--- a/src/admin/ladmin.cpp
+++ b/src/admin/ladmin.cpp
@@ -286,7 +286,7 @@ void ladmin_log(XString line)
}
static
-void on_delete(Session *)
+void delete_fromlogin(Session *)
{
{
PRINTF("Impossible to have a connection with the login-server [%s:%d] !\n",
@@ -2785,7 +2785,8 @@ int Connect_login_server(void)
Iprintf("Attempt to connect to login-server...\n");
LADMIN_LOG("Attempt to connect to login-server...\n");
- login_session = make_connection(login_ip, login_port);
+ login_session = make_connection(login_ip, login_port, SessionParsers{func_parse: parse_fromlogin, func_delete: delete_fromlogin});
+
if (!login_session)
return 0;
@@ -2904,8 +2905,6 @@ int do_init(Slice<ZString> argv)
LADMIN_LOG("");
LADMIN_LOG("Configuration file readed.\n");
- set_defaultparse(parse_fromlogin, on_delete);
-
Iprintf("EAthena login-server administration tool.\n");
Version version = CURRENT_LOGIN_SERVER_VERSION;
Iprintf("for tmwA version %hhu.%hhu.%hhu (dev? %hhu) (flags %hhx) (which %hhx) (vend %hu)\n",