Переглянути джерело

txt convertors reading inter_athena.conf import command

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1038 54d463be-8e91-2dee-dedb-b68131a5f0ec
(no author) 20 роки тому
батько
коміт
98e07da789

+ 2 - 0
Changelog.txt

@@ -1,6 +1,8 @@
 Date	Added
 
 02/04
+	* TXT convertors now read the import command in inter_athena.conf
+	  [SVN 1038: Ajarn]
         * Fixed some compile errors [SVN 1037: MouseJstr]
 	* Added common/buffer.(c/h) [SVN 1033: Ajarn]
 	* Login server can now set it's ip address in the config [SVN 1033: Ajarn]

+ 3 - 0
src/txt-converter/char/char-converter.c

@@ -789,6 +789,9 @@ int inter_config_read(const char *cfgName) {
 		else if(strcmpi(w1,"db_server_logindb")==0){
 			strcpy(db_server_logindb, w2);
 			printf ("set db_server_logindb : %s\n",w2);
+		//support the import command, just like any other config
+		}else if(strcmpi(w1,"import")==0){
+			sql_config_read(w2);
 		}
 	}
 	fclose(fp);

+ 4 - 0
src/txt-converter/login/login-converter.c

@@ -234,6 +234,10 @@ int login_config_read(const char *cfgName){
 			strcpy(db_server_logindb, w2);
 			printf ("set db_server_logindb : %s\n",w2);
 		}
+		//support the import command, just like any other config
+		else if(strcmpi(w1,"import")==0){
+			login_config_read(w2);
+		}
 	}
 	fclose(fp);
 	printf ("End reading interserver configuration...\n");