diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-28 02:49:14 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-28 02:49:14 +0000 |
commit | 4631debbdd720f2f76f3d9be8940ba0ce332b55b (patch) | |
tree | 12a55f8313189048cdaa355c8a2e7d82bc5b93df /src/login/loginlog_sql.c | |
parent | ac890196548bfa14e861b95dfaf910442484c631 (diff) | |
download | hercules-4631debbdd720f2f76f3d9be8940ba0ce332b55b.tar.gz hercules-4631debbdd720f2f76f3d9be8940ba0ce332b55b.tar.bz2 hercules-4631debbdd720f2f76f3d9be8940ba0ce332b55b.tar.xz hercules-4631debbdd720f2f76f3d9be8940ba0ce332b55b.zip |
Fixed loginlog not reading database config settings (followup to r13005).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13009 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login/loginlog_sql.c')
-rw-r--r-- | src/login/loginlog_sql.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/login/loginlog_sql.c b/src/login/loginlog_sql.c index 1443abff9..780236679 100644 --- a/src/login/loginlog_sql.c +++ b/src/login/loginlog_sql.c @@ -68,22 +68,22 @@ bool loginlog_final(void) bool loginlog_config_read(const char* key, const char* value) { - if( strcmpi(key, "log_db_hostname") == 0 ) + if( strcmpi(key, "log_db_ip") == 0 ) safestrncpy(log_db_hostname, value, sizeof(log_db_hostname)); else if( strcmpi(key, "log_db_port") == 0 ) log_db_port = (uint16)strtoul(value, NULL, 10); else - if( strcmpi(key, "log_db_username") == 0 ) + if( strcmpi(key, "log_db_id") == 0 ) safestrncpy(log_db_username, value, sizeof(log_db_username)); else - if( strcmpi(key, "log_db_password") == 0 ) + if( strcmpi(key, "log_db_pw") == 0 ) safestrncpy(log_db_password, value, sizeof(log_db_password)); else - if( strcmpi(key, "log_db_database") == 0 ) + if( strcmpi(key, "log_db_db") == 0 ) safestrncpy(log_db_database, value, sizeof(log_db_database)); else - if( strcmpi(key, "loginlog_table") == 0 ) + if( strcmpi(key, "loginlog_db") == 0 ) safestrncpy(loginlog_table, value, sizeof(loginlog_table)); else return false; |