Browse Source

Enable Log reloading (#8612)

Singe Horizontal 8 months ago
parent
commit
5452ae4038
2 changed files with 5 additions and 0 deletions
  1. 2 0
      conf/msg_conf/map_msg.conf
  2. 3 0
      src/map/atcommand.cpp

+ 2 - 0
conf/msg_conf/map_msg.conf

@@ -1823,5 +1823,7 @@
 1534: Usage: @stockall {<type>}
 1535: %d items are transferred (%d skipped)!
 
+1536: Log configuration has been reloaded.
+
 //Custom translations
 import: conf/msg_conf/import/map_msg_eng_conf.txt

+ 3 - 0
src/map/atcommand.cpp

@@ -4330,6 +4330,9 @@ ACMD_FUNC(reload) {
 	}else if( strstr( command, "barterdb" ) || strncmp( message, "barterdb", 4 ) == 0 ){
 		barter_db.reload();
 		clif_displaymessage(fd, msg_txt(sd, 830)); // Barter database has been reloaded.
+	} else if (strstr(command, "logconf") || strncmp(message, "logconf", 3) == 0) {
+		log_config_read(LOG_CONF_NAME);
+		clif_displaymessage(fd, msg_txt(sd,1536)); // Log configuration has been reloaded.
 	}
 
 	return 0;