0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

modules/m_room_create: Denude created room effect hook functionality for now.

This commit is contained in:
Jason Volk 2019-08-05 16:32:39 -07:00
parent bef1c1e043
commit 52dbf9f412

View file

@ -42,24 +42,23 @@ ircd::m::created_room(const m::event &event,
m::vm::eval &) m::vm::eval &)
try try
{ {
const m::room::id &room_id const m::user::id &sender
{ {
at<"room_id"_>(event) at<"sender"_>(event)
}; };
const string_view &local const auto &level
{ {
room_id.localname() my(sender) && sender != m::me?
log::INFO:
log::DEBUG
}; };
if(local != "users") //TODO: circ dep log::logf
send(m::my_room, at<"sender"_>(event), "ircd.room", room_id, json::object{});
log::debug
{ {
m::log, "Creation of room %s by %s (%s)", m::log, level, "Created room %s with %s by %s",
string_view{room_id}, json::get<"room_id"_>(event),
at<"sender"_>(event), json::get<"sender"_>(event),
string_view{event.event_id}, string_view{event.event_id},
}; };
} }