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

ircd:Ⓜ️🪝 Adjust hook matching to condition event.membership and event.content.membership.

This commit is contained in:
Jason Volk 2018-10-25 14:51:14 -07:00
parent 0229022faa
commit 7d489a40e7

View file

@ -3704,8 +3704,8 @@ ircd::m::_hook_match(const m::event &matching,
if(at<"state_key"_>(matching) != json::get<"state_key"_>(event))
return false;
if(json::get<"membership"_>(matching))
if(at<"membership"_>(matching) != json::get<"membership"_>(event))
if(membership(matching))
if(membership(matching) != membership(event))
return false;
if(json::get<"content"_>(matching))