Comparison

plugins/muc/mod_muc.lua @ 8179:c5fa7fe3fd79

MUC: Return item-not-found for eg messages to non-existant rooms (changed in 566aba0482b6 for unknown reason)
author Kim Alvefur <zash@zash.se>
date Thu, 06 Jul 2017 11:21:28 +0200
parent 8178:9f2a5fc9e4a5
child 8180:67a9ff352271
comparison
equal deleted inserted replaced
8178:9f2a5fc9e4a5 8179:c5fa7fe3fd79
290 -- Watch presence to create rooms 290 -- Watch presence to create rooms
291 if stanza.attr.type == nil and stanza.name == "presence" then 291 if stanza.attr.type == nil and stanza.name == "presence" then
292 room = muclib.new_room(room_jid); 292 room = muclib.new_room(room_jid);
293 return room:handle_first_presence(origin, stanza); 293 return room:handle_first_presence(origin, stanza);
294 elseif stanza.attr.type ~= "error" then 294 elseif stanza.attr.type ~= "error" then
295 origin.send(st.error_reply(stanza, "cancel", "not-allowed")); 295 origin.send(st.error_reply(stanza, "cancel", "item-not-found"));
296 return true; 296 return true;
297 else 297 else
298 return; 298 return;
299 end 299 end
300 end 300 end