Comparison

plugins/muc/password.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
parent 8997:8c4dd4375823
child 9455:c62c983b8be3
comparison
equal deleted inserted replaced
9034:1c709e3d2e5e 9035:173c0e16e704
29 name = "muc#roomconfig_roomsecret"; 29 name = "muc#roomconfig_roomsecret";
30 type = "text-private"; 30 type = "text-private";
31 label = "Password"; 31 label = "Password";
32 value = get_password(event.room) or ""; 32 value = get_password(event.room) or "";
33 }); 33 });
34 end, 100-7); 34 end, 90-2);
35 35
36 module:hook("muc-config-submitted/muc#roomconfig_roomsecret", function(event) 36 module:hook("muc-config-submitted/muc#roomconfig_roomsecret", function(event)
37 if set_password(event.room, event.value) then 37 if set_password(event.room, event.value) then
38 event.status_codes["104"] = true; 38 event.status_codes["104"] = true;
39 end 39 end