0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-02 05:38:53 +02:00

ircd:Ⓜ️🪝 Condition to match on membership field if available.

This commit is contained in:
Jason Volk 2018-02-26 00:12:03 -08:00
parent e259d7bad7
commit 5dbafa6a21

View file

@ -591,6 +591,10 @@ ircd::m::hook::site::operator()(const event &event)
if(at<"state_key"_>(hook.matching) != json::get<"state_key"_>(event))
return false;
if(json::get<"membership"_>(hook.matching))
if(at<"membership"_>(hook.matching) != json::get<"membership"_>(event))
return false;
return true;
}};