diff --git a/modules/conf.cc b/modules/conf.cc index de64a2431..2f93e9ef2 100644 --- a/modules/conf.cc +++ b/modules/conf.cc @@ -83,12 +83,14 @@ try { char val[512]; std::stringstream ss; + ss << "
";
 	for(const auto &p : conf::items)
 		ss << std::setw(32) << std::right << p.first
 		   << " = " << p.second->get(val)
-		   << "\n";
+		   << "
"; + ss << "
"; - notice(m::control, ss.str()); + msghtml(m::control, m::me.user_id, ss.str()); } catch(const std::exception &e) { @@ -104,9 +106,6 @@ noexcept at<"content"_>(event) }; - if(unquote(content.get("msgtype")) == "m.notice") - return; - const string_view &body { unquote(content.at("body")) @@ -135,21 +134,18 @@ noexcept const m::hook _update_conf_hook { + _update_conf, { { "_site", "vm notify" }, { "room_id", "!control:zemos.net" }, { "type", "m.room.message" }, - }, - - _update_conf + { "content", + { + { "msgtype", "m.text" } + }} + } }; -static void -_create_conf_room(const m::event &) -{ - m::create(conf_room_id, m::me.user_id); -} - const m::hook _create_conf_hook { @@ -158,6 +154,8 @@ _create_conf_hook { "room_id", "!ircd:zemos.net" }, { "type", "m.room.create" }, }, - - _create_conf_room + [](const m::event &) + { + m::create(conf_room_id, m::me.user_id); + } };