Mercurial > prosody-modules
changeset 3546:ef5d52ca31bb
mod_muc_lang: Abort on Prosody 0.11 which supports this natively (thanks Ge0rG)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 03 Apr 2019 11:37:13 +0200 |
parents | c1d7e6752d18 |
children | 82cf953fabae |
files | mod_muc_lang/mod_muc_lang.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;