plugins/mod_component.lua
changeset 11039 ba1143ddae9b
parent 11038 233196135048
child 11244 0f7ecc9a4560
equal deleted inserted replaced
11038:233196135048 11039:ba1143ddae9b
   130 					end
   130 					end
   131 				end
   131 				end
   132 			end
   132 			end
   133 			module:log("warn", "Component not connected, bouncing error for: %s", stanza:top_tag());
   133 			module:log("warn", "Component not connected, bouncing error for: %s", stanza:top_tag());
   134 			if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then
   134 			if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then
   135 				event.origin.send(st.error_reply(stanza, "wait", "remote-server-timeout", "Component unavailable", module.host));
   135 				event.origin.send(st.error_reply(stanza, "wait", "remote-server-timeout", "Component unavailable", module.host)
       
   136 					:tag("not-connected", { xmlns = "xmpp:prosody.im/protocol/component" }));
   136 			end
   137 			end
   137 		end
   138 		end
   138 		return true;
   139 		return true;
   139 	end
   140 	end
   140 
   141