aboutsummaryrefslogtreecommitdiffstats
path: root/util/xmppstream.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-08-28 12:05:18 +0100
committerMatthew Wild <mwild1@gmail.com>2014-08-28 12:05:18 +0100
commit580f0a2a97b67c80dcb77d386bf469912c5ddfcb (patch)
treef9b41c73e3cda1b1f3ffe63a3921967eea4a20d6 /util/xmppstream.lua
parentaf8588572ea3aef8d7c799315adaaf7c7bb64c4f (diff)
parente5cad1e21d8d45fb12dc0f3d53767c7fb875c96c (diff)
downloadprosody-580f0a2a97b67c80dcb77d386bf469912c5ddfcb.tar.gz
prosody-580f0a2a97b67c80dcb77d386bf469912c5ddfcb.zip
Merge 0.10->trunk
Diffstat (limited to 'util/xmppstream.lua')
-rw-r--r--util/xmppstream.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/xmppstream.lua b/util/xmppstream.lua
index 6982aae3..dede0da9 100644
--- a/util/xmppstream.lua
+++ b/util/xmppstream.lua
@@ -109,7 +109,7 @@ function new_sax_handlers(session, stream_callbacks, cb_handleprogress)
end
else
-- Garbage before stream?
- cb_error(session, "no-stream");
+ cb_error(session, "no-stream", tagname);
end
return;
end
@@ -249,7 +249,7 @@ function new(session, stream_callbacks, stanza_size_limit)
["xml:lang"] = "en",
xmlns = stream_callbacks.default_ns,
version = session.version and (session.version > 0 and "1.0" or nil),
- id = session.streamid or "",
+ id = session.streamid,
from = from or session.host, to = to,
};
if session.stream_attrs then