plugins/mod_proxy65.lua

changeset 3817
459c136305c3
parent 3816
39d83a43d473
equal deleted inserted replaced
3816:39d83a43d473 3817:459c136305c3
115 -- Clean up any session-related stuff here 115 -- Clean up any session-related stuff here
116 sessions[conn] = nil; 116 sessions[conn] = nil;
117 end 117 end
118 end 118 end
119 119
120 module:add_identity("proxy", "bytestreams", name);
121 module:add_feature("http://jabber.org/protocol/bytestreams");
122
120 module:hook("iq-get/host/http://jabber.org/protocol/disco#info:query", function(event) 123 module:hook("iq-get/host/http://jabber.org/protocol/disco#info:query", function(event)
121 local origin, stanza = event.origin, event.stanza; 124 local origin, stanza = event.origin, event.stanza;
122 local reply = replies_cache.disco_info; 125 local reply = replies_cache.disco_info;
123 if reply == nil then 126 if reply == nil then
124 reply = st.iq({type='result', from=host}):query("http://jabber.org/protocol/disco#info") 127 reply = st.iq({type='result', from=host}):query("http://jabber.org/protocol/disco#info")

mercurial