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 |