comparison mod_proxy65/mod_proxy65.lua @ 79:34f5818c90e9

mod_proxy65: answer with correct disco#info data on a disco#info request
author Thilo Cestonaro <thilo@cestona.ro>
date Sun, 01 Nov 2009 14:37:28 +0100
parents 85b8622ccffd
children bed9a6b40fae
comparison
equal deleted inserted replaced
78:ae91c98b7e4c 79:34f5818c90e9
116 116
117 local function get_disco_items(stanza) 117 local function get_disco_items(stanza)
118 local reply = replies_cache.disco_items; 118 local reply = replies_cache.disco_items;
119 if reply == nil then 119 if reply == nil then
120 reply = st.iq({type='result', from=host}):query("http://jabber.org/protocol/disco#items"); 120 reply = st.iq({type='result', from=host}):query("http://jabber.org/protocol/disco#items");
121 replies_cache.disco_info = reply; 121 replies_cache.disco_items = reply;
122 end 122 end
123 123
124 reply.attr.id = stanza.attr.id; 124 reply.attr.id = stanza.attr.id;
125 reply.attr.to = stanza.attr.from; 125 reply.attr.to = stanza.attr.from;
126 return reply; 126 return reply;