Software /
code /
prosody
Comparison
plugins/muc/history.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 | 9034:1c709e3d2e5e |
child | 9081:ce57c69a20e2 |
comparison
equal
deleted
inserted
replaced
9034:1c709e3d2e5e | 9035:173c0e16e704 |
---|---|
57 type = 'text-single', | 57 type = 'text-single', |
58 label = 'Default number of history messages returned by room', | 58 label = 'Default number of history messages returned by room', |
59 desc = "Specify the number of previous messages sent to new users when they join the room"; | 59 desc = "Specify the number of previous messages sent to new users when they join the room"; |
60 value = tostring(get_defaulthistorymessages(event.room)) | 60 value = tostring(get_defaulthistorymessages(event.room)) |
61 }); | 61 }); |
62 end, 100-10); | 62 end, 70-5); |
63 | 63 |
64 module:hook("muc-config-submitted/muc#roomconfig_historylength", function(event) | 64 module:hook("muc-config-submitted/muc#roomconfig_historylength", function(event) |
65 if set_historylength(event.room, event.value) then | 65 if set_historylength(event.room, event.value) then |
66 event.status_codes["104"] = true; | 66 event.status_codes["104"] = true; |
67 end | 67 end |