mod_muc_lang: Abort on Prosody 0.11 which supports this natively (thanks Ge0rG)
authorKim Alvefur <zash@zash.se>
Wed, 03 Apr 2019 11:37:13 +0200
changeset 3550 ef5d52ca31bb
parent 3549 c1d7e6752d18
child 3551 82cf953fabae
mod_muc_lang: Abort on Prosody 0.11 which supports this natively (thanks Ge0rG)
mod_muc_lang/mod_muc_lang.lua
--- a/mod_muc_lang/mod_muc_lang.lua	Wed Apr 03 00:03:15 2019 +0200
+++ b/mod_muc_lang/mod_muc_lang.lua	Wed Apr 03 11:37:13 2019 +0200
@@ -1,3 +1,4 @@
+assert(module:depends"muc".rooms, "This module is not required with Prosody >= 0.11");
 
 module:hook("muc-config-form", function(event)
 	local room, form = event.room, event.form;