|
@@ -2675,6 +2675,10 @@ bool char_config_read(const char* cfgName, bool normal){
|
|
|
msg_silent = atoi(w2);
|
|
|
if( msg_silent ) /* only bother if its actually enabled */
|
|
|
ShowInfo("Console Silent Setting: %d\n", atoi(w2));
|
|
|
+ } else if (strcmpi(w1, "console_msg_log") == 0) {
|
|
|
+ console_msg_log = atoi(w2);
|
|
|
+ } else if (strcmpi(w1, "console_log_filepath") == 0) {
|
|
|
+ safestrncpy(console_log_filepath, w2, sizeof(console_log_filepath));
|
|
|
} else if(strcmpi(w1,"stdout_with_ansisequence")==0){
|
|
|
stdout_with_ansisequence = config_switch(w2);
|
|
|
} else if (strcmpi(w1, "char_maintenance") == 0) {
|
|
@@ -2896,10 +2900,12 @@ int do_init(int argc, char **argv)
|
|
|
runflag = CHARSERVER_ST_STARTING;
|
|
|
mapindex_init();
|
|
|
|
|
|
+ // Init default value
|
|
|
CHAR_CONF_NAME = "conf/char_athena.conf";
|
|
|
LAN_CONF_NAME = "conf/subnet_athena.conf";
|
|
|
SQL_CONF_NAME = "conf/inter_athena.conf";
|
|
|
MSG_CONF_NAME_EN = "conf/msg_conf/char_msg.conf";
|
|
|
+ safestrncpy(console_log_filepath, "./log/char-msg_log.log", sizeof(console_log_filepath));
|
|
|
|
|
|
cli_get_options(argc,argv);
|
|
|
|