summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-09 00:55:03 -0300
committershennetsind <ind@henn.et>2013-06-09 00:55:03 -0300
commit2db09c2e6442aa3abe573d35a3a5a1c6fa3db5fa (patch)
treec7f5dbb515a926c04e2cd4f38872730e0e7c3429 /src/char/char.c
parent89a571a3c5d4c9366843a462c40efdebb24d17fe (diff)
downloadhercules-2db09c2e6442aa3abe573d35a3a5a1c6fa3db5fa.tar.gz
hercules-2db09c2e6442aa3abe573d35a3a5a1c6fa3db5fa.tar.bz2
hercules-2db09c2e6442aa3abe573d35a3a5a1c6fa3db5fa.tar.xz
hercules-2db09c2e6442aa3abe573d35a3a5a1c6fa3db5fa.zip
Fixed Bug #7319
Special Thanks to KeiKun~! http://hercules.ws/board/tracker/issue-7319-db-name/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 8672d10ef..524c3029d 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -66,6 +66,7 @@ char skill_homunculus_db[256] = "skill_homunculus";
char mercenary_db[256] = "mercenary";
char mercenary_owner_db[256] = "mercenary_owner";
char ragsrvinfo_db[256] = "ragsrvinfo";
+char interreg_db[32] = "interreg";
// show loading/saving messages
int save_log = 1;
@@ -4686,6 +4687,10 @@ void sql_config_read(const char* cfgName)
safestrncpy(mercenary_db,w2,sizeof(mercenary_db));
else if(!strcmpi(w1,"mercenary_owner_db"))
safestrncpy(mercenary_owner_db,w2,sizeof(mercenary_owner_db));
+ else if(!strcmpi(w1,"ragsrvinfo_db"))
+ safestrncpy(ragsrvinfo_db,w2,sizeof(ragsrvinfo_db));
+ else if(!strcmpi(w1,"interreg_db"))
+ safestrncpy(interreg_db,w2,sizeof(interreg_db));
//support the import command, just like any other config
else if(!strcmpi(w1,"import"))
sql_config_read(w2);