aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-06-28 17:00:50 +0100
committerMatthew Wild <mwild1@gmail.com>2011-06-28 17:00:50 +0100
commit545961d983188eaad611ee80019a6ddc4186d9f2 (patch)
tree35213dfc894b4c4fbb2fdd861275686f593baef3 /plugins/mod_bosh.lua
parent4ce6d1e03d637f0e9a76e73305f3bcd89e114618 (diff)
downloadprosody-545961d983188eaad611ee80019a6ddc4186d9f2.tar.gz
prosody-545961d983188eaad611ee80019a6ddc4186d9f2.zip
mod_bosh: Fix logging when no sid present, fix a missing semi-colon, avoid an extra useless table lookup (thanks Thomas)
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index a6b84367..6550a44a 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -217,8 +217,8 @@ local function bosh_close_stream(session, reason)
end
function stream_callbacks.streamopened(request, attr)
- log("debug", "BOSH body open (sid: %s)", attr.sid);
- local sid = attr.sid
+ local sid = attr.sid;
+ log("debug", "BOSH body open (sid: %s)", sid or "<none>");
if not sid then
-- New session request
request.notopen = nil; -- Signals that we accept this opening tag