Software /
code /
prosody
Comparison
plugins/muc/members_only.lib.lua @ 9035:173c0e16e704
MUC: Add sections in room config form
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 13 Jul 2018 15:47:08 +0100 |
parent | 9034:1c709e3d2e5e |
child | 9716:5281a795d6df |
comparison
equal
deleted
inserted
replaced
9034:1c709e3d2e5e | 9035:173c0e16e704 |
---|---|
83 name = "{http://prosody.im/protocol/muc}roomconfig_allowmemberinvites"; | 83 name = "{http://prosody.im/protocol/muc}roomconfig_allowmemberinvites"; |
84 type = "boolean"; | 84 type = "boolean"; |
85 label = "Allow members to invite new members"; | 85 label = "Allow members to invite new members"; |
86 value = get_allow_member_invites(event.room); | 86 value = get_allow_member_invites(event.room); |
87 }); | 87 }); |
88 end, 100-6); | 88 end, 90-3); |
89 | 89 |
90 module:hook("muc-config-submitted/muc#roomconfig_membersonly", function(event) | 90 module:hook("muc-config-submitted/muc#roomconfig_membersonly", function(event) |
91 if set_members_only(event.room, event.value) then | 91 if set_members_only(event.room, event.value) then |
92 event.status_codes["104"] = true; | 92 event.status_codes["104"] = true; |
93 end | 93 end |