comparison plugins/muc/persistent.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
parents 1c709e3d2e5e
children ea9e1f8f3013
comparison
equal deleted inserted replaced
9034:1c709e3d2e5e 9035:173c0e16e704
24 type = "boolean"; 24 type = "boolean";
25 label = "Persistent (room should remain even when it is empty)"; 25 label = "Persistent (room should remain even when it is empty)";
26 desc = "Rooms are automatically deleted when they are empty, unless this option is enabled"; 26 desc = "Rooms are automatically deleted when they are empty, unless this option is enabled";
27 value = get_persistent(event.room); 27 value = get_persistent(event.room);
28 }); 28 });
29 end, 100-3); 29 end, 100-5);
30 30
31 module:hook("muc-config-submitted/muc#roomconfig_persistentroom", function(event) 31 module:hook("muc-config-submitted/muc#roomconfig_persistentroom", function(event)
32 if set_persistent(event.room, event.value) then 32 if set_persistent(event.room, event.value) then
33 event.status_codes["104"] = true; 33 event.status_codes["104"] = true;
34 end 34 end