summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-03 16:49:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-07 11:16:02 +0300
commit05394b48d045f5dfd725dfc37565ee8ea354d21f (patch)
treef4c754326484aaec401762cb4bc17ee7b3227c96 /src
parent0181f49270c0c06aa421cd9022aac2b597c90a77 (diff)
downloadhercules-05394b48d045f5dfd725dfc37565ee8ea354d21f.tar.gz
hercules-05394b48d045f5dfd725dfc37565ee8ea354d21f.tar.bz2
hercules-05394b48d045f5dfd725dfc37565ee8ea354d21f.tar.xz
hercules-05394b48d045f5dfd725dfc37565ee8ea354d21f.zip
Add login_config into login interface in login.c
Diffstat (limited to 'src')
-rw-r--r--src/login/login.c2
-rw-r--r--src/login/login.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 8e2ed7f0f..fe5d08835 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -2042,6 +2042,8 @@ int do_init(int argc, char** argv)
void login_defaults(void) {
login = &login_s;
+ login->lc = &login_config;
+
login->mmo_auth = login_mmo_auth;
login->mmo_auth_new = login_mmo_auth_new;
login->waiting_disconnect_timer = login_waiting_disconnect_timer;
diff --git a/src/login/login.h b/src/login/login.h
index 096329d33..1dd402291 100644
--- a/src/login/login.h
+++ b/src/login/login.h
@@ -139,6 +139,7 @@ struct login_interface {
DBMap* auth_db;
DBMap* online_db;
int fd;
+ struct Login_Config *lc;
int (*mmo_auth) (struct login_session_data* sd, bool isServer);
int (*mmo_auth_new) (const char* userid, const char* pass, const char sex, const char* last_ip);