Spelling: Fix various spelling mistakes (thanks timeless)
Words, sometimes I wonder how they even work
Maybe I missed something.
--- a/core/rostermanager.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/core/rostermanager.lua Mon Mar 07 00:13:56 2022 +0100
@@ -139,7 +139,7 @@
-- Due to map store use, we need to manually delete this entry
log("debug", "Removing legacy 'pending' entry");
if not save_roster(username, host, roster, "pending") then
- log("warn", "Could not remove legacy 'pendig' entry");
+ log("warn", "Could not remove legacy 'pending' entry");
end
end
if roster[jid] then
--- a/doc/coding_style.md Sun Mar 06 15:13:50 2022 +0100
+++ b/doc/coding_style.md Mon Mar 07 00:13:56 2022 +0100
@@ -20,7 +20,7 @@
```
Tab width is configurable in editors, so never assume a particular width.
-Specically this means you should not mix tabs and spaces, or use tabs for
+Specifically this means you should not mix tabs and spaces, or use tabs for
alignment of items at different indentation levels.
* Use LF (Unix) line endings.
--- a/net/dns.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/net/dns.lua Mon Mar 07 00:13:56 2022 +0100
@@ -344,7 +344,7 @@
-- 4 not implemented
-- 5 refused
-- 6-15 reserved
- o.z = o.z or 0; -- 3b 0 resvered
+ o.z = o.z or 0; -- 3b 0 reserved
o.ra = o.ra or 0; -- 1b 1 recursion available
o.qdcount = o.qdcount or 1; -- 16b number of question RRs
@@ -885,7 +885,7 @@
if co then
set(self.wanted, qclass, qtype, qname, co, true);
end
-
+
if have_timer and self.timeout then
local num_servers = #self.server;
local i = 1;
@@ -941,7 +941,7 @@
sock:send(o.packet);
end
end
- end
+ end
if not retried then
log("debug", 'tried all servers, giving up');
self:cancel(o.qclass, o.qtype, o.qname);
@@ -994,7 +994,7 @@
-- retire the query
local queries = self.active[response.header.id];
queries[response.question.raw] = nil;
-
+
if not next(queries) then self.active[response.header.id] = nil; end
if not next(self.active) then self:closeall(); end
@@ -1008,7 +1008,7 @@
set(self.wanted, q.class, q.type, q.name, nil);
end
end
-
+
end
end
end
--- a/net/server_event.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/net/server_event.lua Mon Mar 07 00:13:56 2022 +0100
@@ -262,7 +262,7 @@
--TODO: Deprecate
function interface_mt:lock_read(switch)
- log("warn", ":lock_read is deprecated, use :pasue() and :resume()");
+ log("warn", ":lock_read is deprecated, use :pause() and :resume()");
if switch then
return self:pause();
else
@@ -540,7 +540,7 @@
--vdebug( "tried to read in writecallback, result:", ret )
end
if interface.eventwritetimeout then -- luasec only
- interface.eventwritetimeout:close( ) -- first we have to close timeout event which where regged after a wantread error
+ interface.eventwritetimeout:close( ) -- first we have to close timeout event which where registered after a wantread error
interface.eventwritetimeout = false
end
end
@@ -607,7 +607,7 @@
return -1 -- took too long to get some data from client -> disconnect
end
if interface._usingssl then -- handle luasec
- if interface.eventwritetimeout then -- ok, in the past writecallback was regged
+ if interface.eventwritetimeout then -- ok, in the past writecallback was registered
local ret = interface.writecallback( ) -- call it
--vdebug( "tried to write in readcallback, result:", tostring(ret) )
end
--- a/plugins/adhoc/mod_adhoc.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/plugins/adhoc/mod_adhoc.lua Mon Mar 07 00:13:56 2022 +0100
@@ -91,7 +91,7 @@
local function adhoc_added(event)
local item = event.item;
- -- Dang this was noicy
+ -- Dang this was noisy
module:log("debug", "Command added by mod_%s: %q, %q", item._provided_by or "<unknown module>", item.name, item.node);
commands[item.node] = item;
end
--- a/plugins/mod_http_files.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/plugins/mod_http_files.lua Mon Mar 07 00:13:56 2022 +0100
@@ -75,12 +75,12 @@
opts.index_files = dir_indices;
end
-- TODO Crank up to warning
- module:log("debug", "%s should be updated to use 'net.http.files' insead of mod_http_files", get_calling_module());
+ module:log("debug", "%s should be updated to use 'net.http.files' instead of mod_http_files", get_calling_module());
return fileserver.serve(opts);
end
function wrap_route(routes)
- module:log("debug", "%s should be updated to use 'net.http.files' insead of mod_http_files", get_calling_module());
+ module:log("debug", "%s should be updated to use 'net.http.files' instead of mod_http_files", get_calling_module());
for route,handler in pairs(routes) do
if type(handler) ~= "function" then
routes[route] = fileserver.serve(handler);
--- a/spec/json/pass1.json Sun Mar 06 15:13:50 2022 +0100
+++ b/spec/json/pass1.json Mon Mar 07 00:13:56 2022 +0100
@@ -20,8 +20,8 @@
"backslash": "\\",
"controls": "\b\f\n\r\t",
"slash": "/ & \/",
- "alpha": "abcdefghijklmnopqrstuvwyz",
- "ALPHA": "ABCDEFGHIJKLMNOPQRSTUVWYZ",
+ "alpha": "abcdefghijklmnopqrstuvwxyz",
+ "ALPHA": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"digit": "0123456789",
"0123456789": "digit",
"special": "`1~!@#$%^&*()_+-={':[,]}|;.</>?",
@@ -55,4 +55,4 @@
0.1e1,
1e-1,
1e00,2e+00,2e-00
-,"rosebud"]
\ No newline at end of file
+,"rosebud"]
--- a/spec/util_dataforms_spec.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/spec/util_dataforms_spec.lua Mon Mar 07 00:13:56 2022 +0100
@@ -452,14 +452,14 @@
assert.string(e.number);
end);
- it("bounds-cheking work works", function ()
+ it("bounds-checking work works", function ()
local d,e = f:data(f:form({number = 100}));
assert.not_equal(100, d.number);
assert.table(e);
assert.string(e.number);
end);
- it("serializes largeer ints okay", function ()
+ it("serializes larger ints okay", function ()
local x = f:form{number=1125899906842624}
assert.equal("1125899906842624", x:find("field/value#"))
end);
--- a/teal-src/util/encodings.d.tl Sun Mar 06 15:13:50 2022 +0100
+++ b/teal-src/util/encodings.d.tl Mon Mar 07 00:13:56 2022 +0100
@@ -19,7 +19,7 @@
length : function (s : string) : integer
end
record confusable
- skeleteon : function (s : string) : string
+ skeleton : function (s : string) : string
end
version : string
end
--- a/tools/ejabberd2prosody.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/tools/ejabberd2prosody.lua Mon Mar 07 00:13:56 2022 +0100
@@ -187,7 +187,7 @@
for _,aff in ipairs(properties.affiliations) do
store._affiliations[build_jid(aff[1])] = aff[2][1] or aff[2];
end
- -- destructre ejabberd's subject datum (e.g. [{text,<<>>,<<"my room subject">>}] )
+ -- destructure ejabberd's subject datum (e.g. [{text,<<>>,<<"my room subject">>}] )
store._data.subject = properties.subject[1][3];
if properties.subject_author then
store._data.subject_from = store.jid .. "/" .. properties.subject_author;
--- a/tools/migration/prosody-migrator.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/tools/migration/prosody-migrator.lua Mon Mar 07 00:13:56 2022 +0100
@@ -38,7 +38,7 @@
print("Usage: " .. arg[0] .. " [OPTIONS] FROM_STORE TO_STORE");
print(" --config FILE Specify config file")
print(" --keep-going Keep going in case of errors");
- print(" -v, --verbose Incease log-level");
+ print(" -v, --verbose Increase log-level");
print("");
print("If no stores are specified, 'input' and 'output' are used.");
end
@@ -153,7 +153,7 @@
log("debug", "Using store user iterator")
return store:users();
else
- log("debug", "Using usermanagre user iterator")
+ log("debug", "Using usermanager user iterator")
return um.users(host);
end
end
--- a/util-src/struct.c Sun Mar 06 15:13:50 2022 +0100
+++ b/util-src/struct.c Mon Mar 07 00:13:56 2022 +0100
@@ -10,7 +10,7 @@
** > - big endian
** < - little endian
** ![num] - alignment
-** x - pading
+** x - padding
** b/B - signed/unsigned byte
** h/H - signed/unsigned short
** l/L - signed/unsigned long
--- a/util/datamanager.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/util/datamanager.lua Mon Mar 07 00:13:56 2022 +0100
@@ -222,7 +222,7 @@
os_remove(getpath(username, host, datastore));
end
-- we write data even when we are deleting because lua doesn't have a
- -- platform independent way of checking for non-exisitng files
+ -- platform independent way of checking for non-existing files
until ok;
return true;
end
@@ -290,7 +290,7 @@
os_remove(getpath(username, host, datastore, "list"));
end
-- we write data even when we are deleting because lua doesn't have a
- -- platform independent way of checking for non-exisitng files
+ -- platform independent way of checking for non-existing files
return true;
end
--- a/util/openmetrics.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/util/openmetrics.lua Mon Mar 07 00:13:56 2022 +0100
@@ -10,7 +10,7 @@
- Histogram
- Summary
-It is used by util.statsd and util.statistics to provite the OpenMetrics API.
+It is used by util.statsd and util.statistics to provide the OpenMetrics API.
To understand what this module is about, it is useful to familiarize oneself
with the terms MetricFamily, Metric, LabelSet, Label and MetricPoint as
--- a/util/pluginloader.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/util/pluginloader.lua Mon Mar 07 00:13:56 2022 +0100
@@ -12,7 +12,7 @@
local plugin_dir = {};
for path in (CFG_PLUGINDIR or "./plugins/"):gsub("[/\\]", dir_sep):gmatch("[^"..path_sep.."]+") do
path = path..dir_sep; -- add path separator to path end
- path = path:gsub(dir_sep..dir_sep.."+", dir_sep); -- coalesce multiple separaters
+ path = path:gsub(dir_sep..dir_sep.."+", dir_sep); -- coalesce multiple separators
plugin_dir[#plugin_dir + 1] = path;
end
--- a/util/prosodyctl/cert.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/util/prosodyctl/cert.lua Mon Mar 07 00:13:56 2022 +0100
@@ -237,7 +237,7 @@
for _, host in ipairs(hostnames) do
local paths = cm.find_cert_in_index(files_by_name, host);
if paths and imported[paths.certificate] then
- -- One certificate, many mames!
+ -- One certificate, many names!
table.insert(imported, host);
elseif paths then
local c = copy(paths.certificate, cert_basedir .. "/" .. host .. ".crt", nil, owner, group);
--- a/util/sasl.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/util/sasl.lua Mon Mar 07 00:13:56 2022 +0100
@@ -47,7 +47,7 @@
local backend_mechanism = {};
local mechanism_channelbindings = {};
--- register a new SASL mechanims
+-- register a new SASL mechanisms
local function registerMechanism(name, backends, f, cb_backends)
assert(type(name) == "string", "Parameter name MUST be a string.");
assert(type(backends) == "string" or type(backends) == "table", "Parameter backends MUST be either a string or a table.");
@@ -97,7 +97,7 @@
return new(self.realm, self.profile)
end
--- get a list of possible SASL mechanims to use
+-- get a list of possible SASL mechanisms to use
function method:mechanisms()
local current_mechs = {};
for mech, _ in pairs(self.mechs) do
--- a/util/statsd.lua Sun Mar 06 15:13:50 2022 +0100
+++ b/util/statsd.lua Mon Mar 07 00:13:56 2022 +0100
@@ -85,7 +85,7 @@
histogram_metric_mt.__index = histogram_metric_mt
local function new_histogram_metric(buckets, full_name, impl)
- -- NOTE: even though the more or less proprietrary dogstatsd has its own
+ -- NOTE: even though the more or less proprietary dogstatsd has Its own
-- histogram implementation, we push the individual buckets in this statsd
-- backend for both consistency and compatibility across statsd
-- implementations.