Comparison

plugins/muc/members_only.lib.lua @ 7401:e16b3fd0bd80

MUC: Assign priorities to config form hooks so they have a consistent order on each start
author Kim Alvefur <zash@zash.se>
date Tue, 19 Apr 2016 20:31:39 +0200
parent 7353:ca31d3271cf8
child 8976:92f0876b9230
comparison
equal deleted inserted replaced
7400:f1ff321178d4 7401:e16b3fd0bd80
56 name = "muc#roomconfig_membersonly"; 56 name = "muc#roomconfig_membersonly";
57 type = "boolean"; 57 type = "boolean";
58 label = "Make Room Members-Only?"; 58 label = "Make Room Members-Only?";
59 value = get_members_only(event.room); 59 value = get_members_only(event.room);
60 }); 60 });
61 end); 61 end, 100-6);
62 62
63 module:hook("muc-config-submitted/muc#roomconfig_membersonly", function(event) 63 module:hook("muc-config-submitted/muc#roomconfig_membersonly", function(event)
64 if set_members_only(event.room, event.value) then 64 if set_members_only(event.room, event.value) then
65 event.status_codes["104"] = true; 65 event.status_codes["104"] = true;
66 end 66 end