Software /
code /
prosody-modules
Comparison
mod_muc_lang/mod_muc_lang.lua @ 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 |
parent | 3076:091b042cada0 |
comparison
equal
deleted
inserted
replaced
3545:c1d7e6752d18 | 3546:ef5d52ca31bb |
---|---|
1 assert(module:depends"muc".rooms, "This module is not required with Prosody >= 0.11"); | |
1 | 2 |
2 module:hook("muc-config-form", function(event) | 3 module:hook("muc-config-form", function(event) |
3 local room, form = event.room, event.form; | 4 local room, form = event.room, event.form; |
4 table.insert(form, { | 5 table.insert(form, { |
5 name = "muc#roomconfig_lang", | 6 name = "muc#roomconfig_lang", |