aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-10-16 23:00:42 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-10-16 23:00:42 +0500
commitb7e51a203d3d95961294c711ae0d9c449ddb040d (patch)
tree376af083a7225da43a8659f6d0d6184966d10baa /util
parent85b44a1dfd59fee9a26527cc759ef72780a1668c (diff)
downloadprosody-b7e51a203d3d95961294c711ae0d9c449ddb040d.tar.gz
prosody-b7e51a203d3d95961294c711ae0d9c449ddb040d.zip
Monster whitespace commit (beware the whitespace monster).
Diffstat (limited to 'util')
-rw-r--r--util/array.lua4
-rw-r--r--util/broadcast.lua4
-rw-r--r--util/dataforms.lua14
-rw-r--r--util/hmac.lua2
-rw-r--r--util/iterators.lua4
-rw-r--r--util/logger.lua2
-rw-r--r--util/sasl/scram.lua6
-rw-r--r--util/set.lua2
-rw-r--r--util/xmppstream.lua4
-rw-r--r--util/ztact.lua2
10 files changed, 22 insertions, 22 deletions
diff --git a/util/array.lua b/util/array.lua
index 98c0ebe8..6c1f0460 100644
--- a/util/array.lua
+++ b/util/array.lua
@@ -6,8 +6,8 @@
-- COPYING file in the source package for more information.
--
-local t_insert, t_sort, t_remove, t_concat
- = table.insert, table.sort, table.remove, table.concat;
+local t_insert, t_sort, t_remove, t_concat
+ = table.insert, table.sort, table.remove, table.concat;
local array = {};
local array_base = {};
diff --git a/util/broadcast.lua b/util/broadcast.lua
index c74bf4e1..be17461d 100644
--- a/util/broadcast.lua
+++ b/util/broadcast.lua
@@ -7,8 +7,8 @@
--
-local ipairs, pairs, setmetatable, type =
- ipairs, pairs, setmetatable, type;
+local ipairs, pairs, setmetatable, type =
+ ipairs, pairs, setmetatable, type;
module "pubsub"
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 7814ada0..ae745e03 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -126,7 +126,7 @@ function form_t.data(layout, stanza)
return data;
end
-field_readers["text-single"] =
+field_readers["text-single"] =
function (field_tag)
local value = field_tag:child_with_name("value");
if value then
@@ -134,13 +134,13 @@ field_readers["text-single"] =
end
end
-field_readers["text-private"] =
+field_readers["text-private"] =
field_readers["text-single"];
field_readers["jid-single"] =
field_readers["text-single"];
-field_readers["jid-multi"] =
+field_readers["jid-multi"] =
function (field_tag)
local result = {};
for value_tag in field_tag:childtags() do
@@ -151,7 +151,7 @@ field_readers["jid-multi"] =
return result;
end
-field_readers["text-multi"] =
+field_readers["text-multi"] =
function (field_tag)
local result = {};
for value_tag in field_tag:childtags() do
@@ -176,7 +176,7 @@ field_readers["list-multi"] =
return result;
end
-field_readers["boolean"] =
+field_readers["boolean"] =
function (field_tag)
local value = field_tag:child_with_name("value");
if value then
@@ -185,10 +185,10 @@ field_readers["boolean"] =
else
return false;
end
- end
+ end
end
-field_readers["hidden"] =
+field_readers["hidden"] =
function (field_tag)
local value = field_tag:child_with_name("value");
if value then
diff --git a/util/hmac.lua b/util/hmac.lua
index 66dd41d8..6df6986e 100644
--- a/util/hmac.lua
+++ b/util/hmac.lua
@@ -40,7 +40,7 @@ hash
blocksize
the blocksize for the hash function in bytes
hex
- return raw hash or hexadecimal string
+ return raw hash or hexadecimal string
--]]
function hmac(key, message, hash, blocksize, hex)
if #key > blocksize then
diff --git a/util/iterators.lua b/util/iterators.lua
index cc504827..dc692d64 100644
--- a/util/iterators.lua
+++ b/util/iterators.lua
@@ -73,7 +73,7 @@ function count(f, s, var)
var = ret[1];
if var == nil then break; end
x = x + 1;
- end
+ end
return x;
end
@@ -131,7 +131,7 @@ function it2array(f, s, var)
return t;
end
--- Treat the return of an iterator as key,value pairs,
+-- Treat the return of an iterator as key,value pairs,
-- and build a table
function it2table(f, s, var)
local t, var = {};
diff --git a/util/logger.lua b/util/logger.lua
index 80b5bcd0..1fbd4977 100644
--- a/util/logger.lua
+++ b/util/logger.lua
@@ -72,7 +72,7 @@ function make_logger(source_name, level)
end
-- To make sure our cached lengths stay in sync with reality
- modify_hooks[logger] = function () num_level_handlers, num_source_handlers = #level_handlers, source_handlers and #source_handlers; end;
+ modify_hooks[logger] = function () num_level_handlers, num_source_handlers = #level_handlers, source_handlers and #source_handlers; end;
return logger;
end
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index 7354c8fc..c846a7d1 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -67,7 +67,7 @@ end
-- hash algorithm independent Hi(PBKDF2) implementation
function Hi(hmac, str, salt, i)
local Ust = hmac(str, salt.."\0\0\0\1");
- local res = Ust;
+ local res = Ust;
for n=1,i-1 do
local Und = hmac(str, Ust)
res = binaryXOR(res, Und)
@@ -80,8 +80,8 @@ local function validate_username(username)
-- check for forbidden char sequences
for eq in username:gmatch("=(.?.?)") do
if eq ~= "2D" and eq ~= "3D" then
- return false
- end
+ return false
+ end
end
-- replace =2D with , and =3D with =
diff --git a/util/set.lua b/util/set.lua
index ee154ece..e4cc2dff 100644
--- a/util/set.lua
+++ b/util/set.lua
@@ -6,7 +6,7 @@
-- COPYING file in the source package for more information.
--
-local ipairs, pairs, setmetatable, next, tostring =
+local ipairs, pairs, setmetatable, next, tostring =
ipairs, pairs, setmetatable, next, tostring;
local t_concat = table.concat;
diff --git a/util/xmppstream.lua b/util/xmppstream.lua
index d22c923b..2f232fd8 100644
--- a/util/xmppstream.lua
+++ b/util/xmppstream.lua
@@ -69,8 +69,8 @@ function new_sax_handlers(session, stream_callbacks)
attr[i] = nil;
local ns, nm = k:match(ns_pattern);
if nm ~= "" then
- ns = ns_prefixes[ns];
- if ns then
+ ns = ns_prefixes[ns];
+ if ns then
attr[ns..":"..nm] = attr[k];
attr[k] = nil;
end
diff --git a/util/ztact.lua b/util/ztact.lua
index 2507bf8e..40aa8843 100644
--- a/util/ztact.lua
+++ b/util/ztact.lua
@@ -347,7 +347,7 @@ function lson_encode (mixed, f, indent, indents) --------------- lson_encode
f ('[') f (lson_encode (k)) f ('] = ')
lson_encode (v, f, indent+1, indents)
f (',')
- end
+ end
f (' }')
end end end