diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-30 13:56:27 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-30 13:56:27 +0000 |
commit | c8db14a97b3d3ba0d8a255e57d941968e265ef1c (patch) | |
tree | 969ebd73f2b0f1da94f4ee7bd7aa316ef63b8b2b /src/char_sql/char.c | |
parent | 9f0ff780a9b3de47895dfeb20417390d2bd9dc93 (diff) | |
download | hercules-c8db14a97b3d3ba0d8a255e57d941968e265ef1c.tar.gz hercules-c8db14a97b3d3ba0d8a255e57d941968e265ef1c.tar.bz2 hercules-c8db14a97b3d3ba0d8a255e57d941968e265ef1c.tar.xz hercules-c8db14a97b3d3ba0d8a255e57d941968e265ef1c.zip |
- Fixed char-sql compilation
- Added support for reading the item_db_db inter config settings (char-sql)
- Fixed some compile warnings (functions with no arguments should have a (void) instead of ()).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8546 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r-- | src/char_sql/char.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index d5d1395a7..3a21f2ebb 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -4016,6 +4016,10 @@ void sql_config_read(const char *cfgName){ /* Kalaspuff, to get login_db */ }else if(strcmpi(w1,"use_sql_db")==0){ // added for sql item_db read for char server [Valaris]
db_use_sqldbs = config_switch(w2);
ShowStatus("Using SQL dbs: %s\n",w2);
+ }else if(strcmpi(w1,"item_db_db")==0){
+ strcpy(item_db_db,w2);
+ }else if(strcmpi(w1,"item_db2_db")==0){
+ strcpy(item_db2_db,w2);
} else if(strcmpi(w1,"connection_ping_interval")==0) {
connection_ping_interval = config_switch(w2);
//custom columns for login database
|