aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-01-26 19:47:33 +0100
committerKim Alvefur <zash@zash.se>2017-01-26 19:47:33 +0100
commit7e1a61f76b04981306d02759f4a8c07c8af9ea86 (patch)
treed70f10039b1ee0bdec5f010014db2fd1fe0b7b83 /plugins/mod_c2s.lua
parenta845ca47015583bf7b41f20362fd210c037639f3 (diff)
parente18117b8f9bffb05582ff610f0bd011d54a94c33 (diff)
downloadprosody-7e1a61f76b04981306d02759f4a8c07c8af9ea86.tar.gz
prosody-7e1a61f76b04981306d02759f4a8c07c8af9ea86.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index 7eebaf2d..d106ed37 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -39,8 +39,6 @@ local listener = {};
local runner_callbacks = {};
module:hook("stats-update", function ()
- -- Connection counter resets to 0 on load and reload
- -- Bump it up to current value
local count = 0;
for _ in pairs(sessions) do
count = count + 1;
@@ -96,8 +94,8 @@ function stream_callbacks.streamopened(session, attr)
if features.tags[1] or session.full_jid then
send(features);
else
- (session.log or log)("warn", "No features to offer");
- session:close{ condition = "undefined-condition", text = "No features to proceed with" };
+ (session.log or log)("warn", "No stream features to offer");
+ session:close{ condition = "undefined-condition", text = "No stream features to proceed with" };
end
end