Comparison

util/xmppstream.lua @ 4482:722cf2680028

util.xmppstream: Remove some unnecessary code.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 25 Jan 2012 11:47:51 +0500
parent 4426:ee65aa40ef60
child 4483:1dbd06eedaa4
comparison
equal deleted inserted replaced
4481:408c2f688e4e 4482:722cf2680028
149 if name == "" then 149 if name == "" then
150 curr_ns, name = "", curr_ns; 150 curr_ns, name = "", curr_ns;
151 end 151 end
152 cb_error(session, "parse-error", "unexpected-element-close", name); 152 cb_error(session, "parse-error", "unexpected-element-close", name);
153 end 153 end
154 stanza, chardata = nil, {};
155 stack = {};
156 end 154 end
157 end 155 end
158 156
159 local function restricted_handler(parser) 157 local function restricted_handler(parser)
160 cb_error(session, "parse-error", "restricted-xml", "Restricted XML, see RFC 6120 section 11.1."); 158 cb_error(session, "parse-error", "restricted-xml", "Restricted XML, see RFC 6120 section 11.1.");