-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