Comparison

plugins/muc/subject.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 7365:2d502878b784
child 8606:b6b1f0f9b381
comparison
equal deleted inserted replaced
7400:f1ff321178d4 7401:e16b3fd0bd80
33 name = "muc#roomconfig_changesubject"; 33 name = "muc#roomconfig_changesubject";
34 type = "boolean"; 34 type = "boolean";
35 label = "Allow Occupants to Change Subject?"; 35 label = "Allow Occupants to Change Subject?";
36 value = get_changesubject(event.room); 36 value = get_changesubject(event.room);
37 }); 37 });
38 end); 38 end, 100-8);
39 39
40 module:hook("muc-config-submitted/muc#roomconfig_changesubject", function(event) 40 module:hook("muc-config-submitted/muc#roomconfig_changesubject", function(event)
41 if set_changesubject(event.room, event.value) then 41 if set_changesubject(event.room, event.value) then
42 event.status_codes["104"] = true; 42 event.status_codes["104"] = true;
43 end 43 end