Comparison

plugins/mod_component.lua @ 914:50850f15340c

mod_component: Remove some commented code
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Mar 2009 17:54:29 +0000
parent 910:27d909db4714
child 959:e3db909065f2
comparison
equal deleted inserted replaced
913:3e2dac84017d 914:50850f15340c
119 -- Signal successful authentication 119 -- Signal successful authentication
120 session.send(st.stanza("handshake")); 120 session.send(st.stanza("handshake"));
121 end 121 end
122 122
123 module:add_handler("component", "handshake", xmlns_component, handle_component_auth); 123 module:add_handler("component", "handshake", xmlns_component, handle_component_auth);
124
125 --[[
126 -- Helper function to deal with errors processing component stanzas
127 local function handleerr(err) log("error", "Traceback[component]: %s: %s", tostring(err), debug.traceback()); end
128 function stream_callbacks.handlestanza(a, b)
129 xpcall(function () core_process_stanza(a, b) end, handleerr);
130 end
131 ]]
132 124
133 --- Closing a component connection 125 --- Closing a component connection
134 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; 126 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'};
135 local function session_close(session, reason) 127 local function session_close(session, reason)
136 local log = session.log or log; 128 local log = session.log or log;