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:
parent
cddc124f94
commit
e26b14c10a
1 changed files with 4 additions and 1 deletions
|
@ -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",
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue