X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmuc%2Fname.lib.lua;h=2dcb979a244de5cd807e1253c15405e411d5c252;hb=74c88eed6701d02bf77a59aeedb8d8204c41bc17;hp=d9bfc4cf0f0a2315ca447ef7daaaa9c4ecf9d5de;hpb=127df5431789381b960207d7c853df2a4f1b9cc9;p=prosody.git diff --git a/plugins/muc/name.lib.lua b/plugins/muc/name.lib.lua index d9bfc4cf..2dcb979a 100644 --- a/plugins/muc/name.lib.lua +++ b/plugins/muc/name.lib.lua @@ -17,7 +17,6 @@ local function set_name(room, name) if name == "" or name == (jid_split(room.jid)) then name = nil; end if room._data.name == name then return false; end room._data.name = name; - if room.save then room:save(true); end return true; end @@ -32,7 +31,7 @@ module:hook("muc-config-form", function(event) label = "Name"; value = get_name(event.room) or ""; }); -end); +end, 100-1); module:hook("muc-config-submitted/muc#roomconfig_roomname", function(event) if set_name(event.room, event.value) then