X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmuc%2Fmod_muc.lua;h=657823383481f95abe63c31c45a746d331970ab2;hb=6efbd878b200c87080a4121283809df8f882bbba;hp=14b716e14a204393190b0e79f97064ecedf35dc3;hpb=5776f1c45d89bdfa6446d38a73b84b6ca107bdf8;p=prosody.git diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 14b716e1..65782338 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -273,6 +273,7 @@ for event_name, method in pairs { -- Watch presence to create rooms if stanza.attr.type == nil and stanza.name == "presence" then room = muclib.new_room(room_jid); + return room:handle_first_presence(origin, stanza); elseif stanza.attr.type ~= "error" then origin.send(st.error_reply(stanza, "cancel", "not-allowed")); return true;