0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

modules/m_control: Workaround the control room hook regression.

This commit is contained in:
Jason Volk 2020-04-10 18:03:20 -07:00
parent cddc124f94
commit e26b14c10a

View file

@ -50,6 +50,9 @@ command_control(const m::event &event,
m::vm::eval &)
noexcept try
{
if(json::get<"room_id"_>(event) != control_room_id) //TODO: XXX see hook
return;
const auto &content
{
at<"content"_>(event)
@ -114,7 +117,7 @@ command_control_hook
command_control,
{
{ "_site", "vm.effect" },
{ "room_id", "!control" },
// { "room_id", "!control" }, //TODO: XXX
{ "type", "m.room.message" },
{ "content",
{