comparison plugins/muc/affiliation_notify.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
parents ca31d3271cf8
children 3d17b2bf0e0c
comparison
equal deleted inserted replaced
7400:f1ff321178d4 7401:e16b3fd0bd80
32 name = "muc#roomconfig_affiliationnotify"; 32 name = "muc#roomconfig_affiliationnotify";
33 type = "boolean"; 33 type = "boolean";
34 label = "Notify users when their affiliation changes when they are not in the room?"; 34 label = "Notify users when their affiliation changes when they are not in the room?";
35 value = get_affiliation_notify(event.room); 35 value = get_affiliation_notify(event.room);
36 }); 36 });
37 end); 37 end, 100-11);
38 38
39 module:hook("muc-config-submitted/muc#roomconfig_affiliationnotify", function(event) 39 module:hook("muc-config-submitted/muc#roomconfig_affiliationnotify", function(event)
40 if set_affiliation_notify(event.room, event.value) then 40 if set_affiliation_notify(event.room, event.value) then
41 event.status_codes["104"] = true; 41 event.status_codes["104"] = true;
42 end 42 end