diff options
Diffstat (limited to 'src/admin')
-rw-r--r-- | src/admin/ladmin.cpp | 7 |
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", |