0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 23:10:54 +01:00

modules/m_room_history_visibility: Fix extern nombre linkage; checkpoint info log msg.

This commit is contained in:
Jason Volk 2018-05-23 04:23:31 -07:00
parent 08d8ea02b8
commit 60bd4f2346

View file

@ -28,17 +28,17 @@ ircd::m::visible_hook
}; };
extern "C" bool extern "C" bool
_visible__user(const m::room &room, visible__user(const m::room &room,
const m::user &user, const m::user &user,
const m::event *const &event) const m::event *const &event)
{ {
return true; return true;
} }
extern "C" bool extern "C" bool
_visible__node(const m::room &room, visible__node(const m::room &room,
const m::node &node, const m::node &node,
const m::event *const &event) const m::event *const &event)
{ {
return true; return true;
} }
@ -46,7 +46,14 @@ _visible__node(const m::room &room,
static void static void
_changed_visibility(const m::event &event) _changed_visibility(const m::event &event)
{ {
log::info
{
"Changed visibility of %s to %s by %s => %s",
json::get<"room_id"_>(event),
json::get<"content"_>(event).get("history_visibility"),
json::get<"sender"_>(event),
json::get<"event_id"_>(event)
};
} }
const m::hook const m::hook