diff --git a/modules/m_info.c b/modules/m_info.c index 9d11ee4f..9acfb5ef 100644 --- a/modules/m_info.c +++ b/modules/m_info.c @@ -242,6 +242,12 @@ static struct InfoStruct info_table[] = { &ConfigFileEntry.fname_serverlog, "Server connect/disconnect log file" }, + { + "fname_killlog", + OUTPUT_STRING, + &ConfigFileEntry.fname_killlog, + "KILL log file" + }, { "fname_klinelog", OUTPUT_STRING, diff --git a/src/s_conf.c b/src/s_conf.c index e858dce8..ffd66928 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -732,6 +732,7 @@ set_default_conf(void) ConfigFileEntry.fname_operlog = NULL; ConfigFileEntry.fname_foperlog = NULL; ConfigFileEntry.fname_serverlog = NULL; + ConfigFileEntry.fname_killlog = NULL; ConfigFileEntry.fname_klinelog = NULL; ConfigFileEntry.fname_operspylog = NULL; ConfigFileEntry.fname_ioerrorlog = NULL; @@ -1487,6 +1488,26 @@ clear_out_old_conf(void) rb_free(ConfigFileEntry.kline_reason); ConfigFileEntry.kline_reason = NULL; + /* clean out log */ + rb_free(ConfigFileEntry.fname_userlog); + ConfigFileEntry.fname_userlog = NULL; + rb_free(ConfigFileEntry.fname_fuserlog); + ConfigFileEntry.fname_fuserlog = NULL; + rb_free(ConfigFileEntry.fname_operlog); + ConfigFileEntry.fname_operlog = NULL; + rb_free(ConfigFileEntry.fname_foperlog); + ConfigFileEntry.fname_foperlog = NULL; + rb_free(ConfigFileEntry.fname_serverlog); + ConfigFileEntry.fname_serverlog = NULL; + rb_free(ConfigFileEntry.fname_killlog); + ConfigFileEntry.fname_killlog = NULL; + rb_free(ConfigFileEntry.fname_klinelog); + ConfigFileEntry.fname_klinelog = NULL; + rb_free(ConfigFileEntry.fname_operspylog); + ConfigFileEntry.fname_operspylog = NULL; + rb_free(ConfigFileEntry.fname_ioerrorlog); + ConfigFileEntry.fname_ioerrorlog = NULL; + RB_DLINK_FOREACH_SAFE(ptr, next_ptr, service_list.head) { rb_free(ptr->data);