mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 22:41:12 +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 &)
|
m::vm::eval &)
|
||||||
noexcept try
|
noexcept try
|
||||||
{
|
{
|
||||||
|
if(json::get<"room_id"_>(event) != control_room_id) //TODO: XXX see hook
|
||||||
|
return;
|
||||||
|
|
||||||
const auto &content
|
const auto &content
|
||||||
{
|
{
|
||||||
at<"content"_>(event)
|
at<"content"_>(event)
|
||||||
|
@ -114,7 +117,7 @@ command_control_hook
|
||||||
command_control,
|
command_control,
|
||||||
{
|
{
|
||||||
{ "_site", "vm.effect" },
|
{ "_site", "vm.effect" },
|
||||||
{ "room_id", "!control" },
|
// { "room_id", "!control" }, //TODO: XXX
|
||||||
{ "type", "m.room.message" },
|
{ "type", "m.room.message" },
|
||||||
{ "content",
|
{ "content",
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue