Mercurial > prosody-hg
comparison plugins/mod_invites.lua @ 13897:6d067ec8ec4a
Merge 13.0->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 18 Jun 2025 15:02:23 +0200 |
| parents | 17b5a10bd9c9 |
| children | b019a30cc1b2 f0b2a05bcedc |
comparison
equal
deleted
inserted
replaced
| 13895:b003c4c921ff | 13897:6d067ec8ec4a |
|---|---|
| 257 { name = "user_jid", type = "string" }; | 257 { name = "user_jid", type = "string" }; |
| 258 }; | 258 }; |
| 259 host_selector = "user_jid"; | 259 host_selector = "user_jid"; |
| 260 flags = { | 260 flags = { |
| 261 array_params = { role = true, group = have_group_invites }; | 261 array_params = { role = true, group = have_group_invites }; |
| 262 value_params = { expires_after = true, admin = true }; | 262 value_params = { expires_after = true }; |
| 263 kv_params = { admin = true }; | |
| 263 }; | 264 }; |
| 264 | 265 |
| 265 handler = function (self, user_jid, opts) --luacheck: ignore 212/self | 266 handler = function (self, user_jid, opts) --luacheck: ignore 212/self |
| 266 local username = jid_split(user_jid); | 267 local username = jid_split(user_jid); |
| 267 local roles = opts and opts.role or {}; | 268 local roles = opts and opts.role or {}; |
