diff options
Diffstat (limited to 'plugins/muc/persistent.lib.lua')
-rw-r--r-- | plugins/muc/persistent.lib.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/muc/persistent.lib.lua b/plugins/muc/persistent.lib.lua index ccf6fffe..a72bcbb5 100644 --- a/plugins/muc/persistent.lib.lua +++ b/plugins/muc/persistent.lib.lua @@ -28,9 +28,8 @@ module:hook("muc-config-form", function(event) }); end); -module:hook("muc-config-submitted", function(event) - local new = event.fields["muc#roomconfig_persistentroom"]; - if new ~= nil and set_persistent(event.room, new) then +module:hook("muc-config-submitted/muc#roomconfig_persistentroom", function(event) + if set_persistent(event.room, event.value) then event.status_codes["104"] = true; end end); |