label = "Notify users when their affiliation changes when they are not in the room?";
value = get_affiliation_notify(event.room);
});
-end);
+end, 100-11);
module:hook("muc-config-submitted/muc#roomconfig_affiliationnotify", function(event)
if set_affiliation_notify(event.room, event.value) then
});
end
module:hook("muc-disco#info", add_form_option);
-module:hook("muc-config-form", add_form_option);
+module:hook("muc-config-form", add_form_option, 100-2);
module:hook("muc-config-submitted/muc#roomconfig_roomdesc", function(event)
if set_description(event.room, event.value) then
label = "Make Room Publicly Searchable?";
value = not get_hidden(event.room);
});
-end);
+end, 100-5);
module:hook("muc-config-submitted/muc#roomconfig_publicroom", function(event)
if set_hidden(event.room, not event.value) then
label = "Maximum Number of History Messages Returned by Room";
value = tostring(get_historylength(event.room));
});
-end);
+end, 100-10);
module:hook("muc-config-submitted/muc#roomconfig_historylength", function(event)
if set_historylength(event.room, event.value) then
label = "Make Room Members-Only?";
value = get_members_only(event.room);
});
-end);
+end, 100-6);
module:hook("muc-config-submitted/muc#roomconfig_membersonly", function(event)
if set_members_only(event.room, event.value) then
label = "Make Room Moderated?";
value = get_moderated(event.room);
});
-end);
+end, 100-4);
module:hook("muc-config-submitted/muc#roomconfig_moderatedroom", function(event)
if set_moderated(event.room, event.value) then
label = "Name";
value = get_name(event.room) or "";
});
-end);
+end, 100-1);
module:hook("muc-config-submitted/muc#roomconfig_roomname", function(event)
if set_name(event.room, event.value) then
label = "Password";
value = get_password(event.room) or "";
});
-end);
+end, 100-7);
module:hook("muc-config-submitted/muc#roomconfig_roomsecret", function(event)
if set_password(event.room, event.value) then
label = "Make Room Persistent?";
value = get_persistent(event.room);
});
-end);
+end, 100-3);
module:hook("muc-config-submitted/muc#roomconfig_persistentroom", function(event)
if set_persistent(event.room, event.value) then
label = "Allow Occupants to Change Subject?";
value = get_changesubject(event.room);
});
-end);
+end, 100-8);
module:hook("muc-config-submitted/muc#roomconfig_changesubject", function(event)
if set_changesubject(event.room, event.value) then
{ value = 'anyone', label = 'Anyone', default = whois == 'anyone' }
}
});
-end);
+end, 100-9);
module:hook("muc-config-submitted/muc#roomconfig_whois", function(event)
if set_whois(event.room, event.value) then