core/xmlhandlers.lua

changeset 165
4adc53e03b4d
parent 150
d09b8a1ab046
child 166
d4ee015fcee4
equal deleted inserted replaced
164:8dc1faa5b1df 165:4adc53e03b4d
67 if session.notopen then 67 if session.notopen then
68 if name == "stream" then 68 if name == "stream" then
69 streamopened(session, attr); 69 streamopened(session, attr);
70 return; 70 return;
71 end 71 end
72 error("Client failed to open stream successfully"); 72 error("Client failed to open stream successfully, it sent tag "..name);
73 end 73 end
74 if curr_ns == "jabber:client" and name ~= "iq" and name ~= "presence" and name ~= "message" then 74 if curr_ns == "jabber:client" and name ~= "iq" and name ~= "presence" and name ~= "message" then
75 error("Client sent invalid top-level stanza"); 75 error("Client sent invalid top-level stanza");
76 end 76 end
77 77

mercurial