瀏覽代碼

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@637 54d463be-8e91-2dee-dedb-b68131a5f0ec

ajarn 20 年之前
父節點
當前提交
d20ab98354

+ 3 - 0
Changelog.txt

@@ -1,6 +1,9 @@
 Date	Added
 
 12/19
+	* Modified all the *_athena.conf's to have the import command enabled by default [Ajarn]
+	* Added charcommand_conf.txt and log_conf.txt in conf-tmpl/import [Ajarn]
+	* Fixed import command for log_athena.conf file [Ajarn]
 	* Updated charcommand.conf [nsstrunks]
 
 12/18

+ 1 - 1
conf-tmpl/atcommand_athena.conf

@@ -671,4 +671,4 @@ gm: 100
 //---------------------
 // OTHER: not a command
 
-//import: conf/import/atcommand_conf.txt
+import: conf/import/atcommand_conf.txt

+ 3 - 1
conf-tmpl/char_athena.conf

@@ -168,4 +168,6 @@ anti_freeze_interval: 6
 imalive_on: 0
 imalive_time: 30
 flush_on: 0
-flush_time: 30 
+flush_time: 30 
+
+import: conf/import/char_conf.txt

+ 2 - 0
conf-tmpl/charcommand_athena.conf

@@ -22,3 +22,5 @@ spiritball: 60
 item: 60
 job: 60
 jobchange: 60
+
+import: conf/import/charcommand_conf.txt

+ 0 - 0
conf-tmpl/import/charcommand_conf.txt


+ 0 - 0
conf-tmpl/import/log_conf.txt


+ 2 - 0
conf-tmpl/inter_athena.conf

@@ -126,3 +126,5 @@ use_sql_db: no
 
 // Log Inter Connections, etc.?
 log_inter: 1
+
+import: conf/import/inter_conf.txt

+ 1 - 2
conf-tmpl/ladmin_athena.conf

@@ -30,5 +30,4 @@ ladmin_log_filename: log/ladmin.log
 // 3: 2004-12-31 23:59:59 (default)
 date_format: 3
 
-// If you want use an additional configuration file, uncomment and use this parameter
-//import: path/additional_configuration_file
+import: conf/import/ladmin_conf.txt

+ 3 - 1
conf-tmpl/log_athena.conf

@@ -91,4 +91,6 @@ log_trade: log/tradelog.log
 log_vend: log/vendlog.log
 
 // GM Log File
-log_gm: log/atcommandlog.log
+log_gm: log/atcommandlog.log
+
+import: conf/import/log_conf.txt

+ 2 - 0
conf-tmpl/login_athena.conf

@@ -153,3 +153,5 @@ imalive_time: 60
 flush_on: 0
 // How often to flush the buffer in Mugendai's GUI
 flush_time: 60
+
+import: conf/import/login_conf.txt

+ 2 - 2
conf-tmpl/map_athena.conf

@@ -1192,10 +1192,10 @@ map: que_god02.gat
 //map: tank_test2.gat
 //map: test.gat
 
-import: conf/import/map_conf.txt
-
 // Mugendai's GUI Support
 imalive_on: 0
 imalive_time: 30
 flush_on: 0
 flush_time: 30 
+
+import: conf/import/map_conf.txt

+ 3 - 0
src/map/log.c

@@ -471,6 +471,9 @@ int log_config_read(char *cfgName)
 				strcpy(log_config.log_gm, w2);
 				if(log_config.gm > 0)
 					printf("Logging GM Level %d Commands to file `%s`.txt\n", log_config.gm, w2);
+			//support the import command, just like any other config
+			} else if(strcmpi(w1,"import")==0){
+				log_config_read(w2);
 			}
 		}
 	}