119 return; -- FIXME ignoring out of order stanzas because ejabberd does |
119 return; -- FIXME ignoring out of order stanzas because ejabberd does |
120 end |
120 end |
121 local text = stanza[1]; |
121 local text = stanza[1]; |
122 if text then |
122 if text then |
123 text = base64.decode(text); |
123 text = base64.decode(text); |
124 log("debug", "%s", text); |
124 log("debug", "%s", text); -- FIXME: binary output will screw up the terminal |
125 if not text then |
125 if not text then |
126 session.sasl_handler = nil; |
126 session.sasl_handler = nil; |
127 session.send(build_reply("failure", "incorrect-encoding")); |
127 session.send(build_reply("failure", "incorrect-encoding")); |
128 return; |
128 return; |
129 end |
129 end |