core/xmlhandlers.lua

changeset 166
d4ee015fcee4
parent 165
4adc53e03b4d
child 331
830fd67f9378
equal deleted inserted replaced
165:4adc53e03b4d 166:d4ee015fcee4
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, it sent tag "..name); 72 error("Client failed to open stream successfully");
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