mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Implement #logs reload_all - To reload world and zone their log settings from the database
This commit is contained in:
+5
-2
@@ -10421,8 +10421,11 @@ void command_logs(Client *c, const Seperator *sep){
|
||||
int logs_set = 0;
|
||||
if (sep->argnum > 0) {
|
||||
/* #logs reload_all */
|
||||
if(strcasecmp(sep->arg[1], "reload_all") == 0){
|
||||
c->Message(0, "Yes this is working");
|
||||
if (strcasecmp(sep->arg[1], "reload_all") == 0){
|
||||
ServerPacket *pack = new ServerPacket(ServerOP_ReloadLogs, 0);
|
||||
worldserver.SendPacket(pack);
|
||||
c->Message(13, "Successfully sent the packet to world to reload log settings from the database for all zones");
|
||||
safe_delete(pack);
|
||||
}
|
||||
/* #logs list_settings */
|
||||
if (strcasecmp(sep->arg[1], "list_settings") == 0 || (strcasecmp(sep->arg[1], "set") == 0 && strcasecmp(sep->arg[3], "") == 0)){
|
||||
|
||||
@@ -1748,6 +1748,10 @@ void WorldServer::Process() {
|
||||
RuleManager::Instance()->LoadRules(&database, RuleManager::Instance()->GetActiveRuleset());
|
||||
break;
|
||||
}
|
||||
case ServerOP_ReloadLogs: {
|
||||
database.LoadLogSysSettings(Log.log_settings);
|
||||
break;
|
||||
}
|
||||
case ServerOP_CameraShake:
|
||||
{
|
||||
if(zone)
|
||||
|
||||
Reference in New Issue
Block a user