120 else |
120 else |
121 cb_error(session, "parse-error", "unexpected-element-close", name); |
121 cb_error(session, "parse-error", "unexpected-element-close", name); |
122 end |
122 end |
123 end |
123 end |
124 if stanza then |
124 if stanza then |
125 if stanza and #chardata > 0 then |
125 if #chardata > 0 then |
126 -- We have some character data in the buffer |
126 -- We have some character data in the buffer |
127 stanza:text(t_concat(chardata)); |
127 stanza:text(t_concat(chardata)); |
128 chardata = {}; |
128 chardata = {}; |
129 end |
129 end |
130 -- Complete stanza |
130 -- Complete stanza |