From b351b409613806be845fa24151d8855a33dbe0a6 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 14 Feb 2019 15:08:18 -0800 Subject: [PATCH] modules/m_event: Fix room::power interface misuse. --- modules/m_event.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/m_event.cc b/modules/m_event.cc index 169594beb..43ac10981 100644 --- a/modules/m_event.cc +++ b/modules/m_event.cc @@ -951,7 +951,7 @@ ircd::m::event::auth::failed(const m::event &event, // 8. If the event type's required power level is greater than the // sender's power level, reject. - if(!power(at<"sender"_>(event), {}, at<"type"_>(event))) + if(!power(at<"sender"_>(event), "events", at<"type"_>(event))) return "sender has insufficient power for event type."; // 9. If the event has a state_key that starts with an @ and does not