aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-07 20:50:56 +0200
committerKim Alvefur <zash@zash.se>2016-08-07 20:50:56 +0200
commit0c9ea080152cf2adf57c521e4c8184c595eaf107 (patch)
tree0f0268f1685426e19dac824d1e15c378476c99ad /plugins
parent2c74295bfa5f749edd0f458ed9e8aadd23883bfe (diff)
downloadprosody-0c9ea080152cf2adf57c521e4c8184c595eaf107.tar.gz
prosody-0c9ea080152cf2adf57c521e4c8184c595eaf107.zip
mod_c2s: Fix whitespace (why does it keep getting messed up?)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_c2s.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index e69bf461..71da8773 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -246,9 +246,9 @@ function listener.onconnect(conn)
function session.data(data)
-- Parse the data, which will store stanzas in session.pending_stanzas
if data then
- data = filter("bytes/in", data);
- if data then
- local ok, err = stream:feed(data);
+ data = filter("bytes/in", data);
+ if data then
+ local ok, err = stream:feed(data);
if not ok then
log("debug", "Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " "):gsub("[%z\1-\31]", "_"));
session:close("not-well-formed");