diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-28 22:57:02 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-28 22:57:02 +0200 |
commit | c18892c9aaa0e15bc245325c32264a9e3b66457b (patch) | |
tree | f988be1bcf21d2edcb07fa415390c3974d7ec051 /plugins/muc/mod_muc.lua | |
parent | 33c9be6039bd521dcfe8e8242fc47b5ce096a94b (diff) | |
download | prosody-c18892c9aaa0e15bc245325c32264a9e3b66457b.tar.gz prosody-c18892c9aaa0e15bc245325c32264a9e3b66457b.zip |
MUC: Split out handling of the room-creating presence into its own method
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r-- | plugins/muc/mod_muc.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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; |