Comparison

net/xmppclient_listener.lua @ 625:cad4dcfbf295

Change xmlhandlers to match stream opening tag with ns+tag
author Matthew Wild <mwild1@gmail.com>
date Tue, 16 Dec 2008 02:33:08 +0000
parent 615:4ae3e81513f3
child 758:b1885732e979
comparison
equal deleted inserted replaced
624:04fe1a00aa16 625:cad4dcfbf295
34 local sm_new_session, sm_destroy_session = sessionmanager.new_session, sessionmanager.destroy_session; --import("core.sessionmanager", "new_session", "destroy_session"); 34 local sm_new_session, sm_destroy_session = sessionmanager.new_session, sessionmanager.destroy_session; --import("core.sessionmanager", "new_session", "destroy_session");
35 local sm_streamopened = sessionmanager.streamopened; 35 local sm_streamopened = sessionmanager.streamopened;
36 local sm_streamclosed = sessionmanager.streamclosed; 36 local sm_streamclosed = sessionmanager.streamclosed;
37 local st = stanza; 37 local st = stanza;
38 38
39 local stream_callbacks = { ns = "http://etherx.jabber.org/streams", streamopened = sm_streamopened, streamclosed = sm_streamclosed, handlestanza = core_process_stanza }; 39 local stream_callbacks = { stream_tag = "http://etherx.jabber.org/streams|stream", streamopened = sm_streamopened, streamclosed = sm_streamclosed, handlestanza = core_process_stanza };
40 40
41 function stream_callbacks.error(session, error, data) 41 function stream_callbacks.error(session, error, data)
42 if error == "no-stream" then 42 if error == "no-stream" then
43 session:close("invalid-namespace"); 43 session:close("invalid-namespace");
44 else 44 else