diff --git a/src/conf.c b/src/conf.c index 765b85c86..951ec2bef 100644 --- a/src/conf.c +++ b/src/conf.c @@ -1871,6 +1871,7 @@ static void make_default_logblock(void) safe_strdup(ca->file, "ircd.log"); convert_to_absolute_path(&ca->file, LOGDIR); ca->flags |= LOG_CHGCMDS|LOG_CLIENT|LOG_ERROR|LOG_KILL|LOG_KLINE|LOG_OPER|LOG_OVERRIDE|LOG_SACMDS|LOG_SERVER|LOG_SPAMFILTER|LOG_TKL; + ca->type = LOG_TYPE_TEXT; ca->logfd = -1; AddListItem(ca, conf_log); } diff --git a/src/log.c b/src/log.c index 36c573402..3f4120026 100644 --- a/src/log.c +++ b/src/log.c @@ -181,6 +181,7 @@ int config_run_log(ConfigFile *conf, ConfigEntry *ce) ca = safe_alloc(sizeof(ConfigItem_log)); ca->logfd = -1; + ca->type = LOG_TYPE_TEXT; /* default */ if (strchr(ce->ce_vardata, '%')) safe_strdup(ca->filefmt, ce->ce_vardata); else