From 8cc46765a3747f06148fcc29fe21a1d12b48f00a Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 1 Mar 2019 12:06:44 -0800 Subject: [PATCH] ircd::m::room::state: Disable history by default with warning for now. --- ircd/m.cc | 9 +++++++++ ircd/m_room.cc | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ircd/m.cc b/ircd/m.cc index 69b88ea5a..399f14e26 100644 --- a/ircd/m.cc +++ b/ircd/m.cc @@ -49,6 +49,15 @@ try } { presence::set(me, "online", me_online_status_msg); + + if(room::state::disable_history) + log::warning + { + m::log, "Room state history is disabled by the configuration" + " (ircd.m.room.state.disable_history). This is for development" + " only. You must change this manually when instructed to do so" + " by the developer before production use." + }; } catch(const http::error &e) { diff --git a/ircd/m_room.cc b/ircd/m_room.cc index 8d6d58f85..087d51572 100644 --- a/ircd/m_room.cc +++ b/ircd/m_room.cc @@ -869,7 +869,7 @@ decltype(ircd::m::room::state::disable_history) ircd::m::room::state::disable_history { { "name", "ircd.m.room.state.disable_history" }, - { "default", false }, + { "default", true }, }; decltype(ircd::m::room::state::readahead_size)