aboutsummaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
* util.events: Fix loop construct (negative step required)Matthew Wild2018-04-241-1/+1
|
* util.helpers: Handle missing priorities, happens due to wildcard magic in ↵Kim Alvefur2017-11-221-1/+1
| | | | net.http.server (fixes #1044)
* util.sql: Return an error message when a SQL commit fails (LuaDBI doesn't) ↵Kim Alvefur2017-11-071-1/+2
| | | | (Thanks Ge0rG)
* util.termcolours: Split a long line [luacheck]Kim Alvefur2017-11-031-1/+2
|
* util.sql: Don't log at error level if a transaction failed and was retried okMatthew Wild2017-10-041-4/+13
|
* util.sslconfig: Treat 'curveslist', added in LuaSec 0.7, as a ↵Kim Alvefur2017-09-271-0/+3
| | | | colon-separated list, like ciphers (see #879, #943, #951)
* util.throttle: Remove unused import of floor() [luacheck]Matthew Wild2017-09-261-1/+0
|
* util.dataforms: Don't include list options in result forms (fixes #983)Matthew Wild2017-09-231-18/+22
|
* util.throttle: Fix initial time setting (double accounting the first time) ↵Waqas Hussain2017-09-171-2/+2
| | | | and fractional balance updates (0.1*10 was not the same as 1*1)
* util.random: Add a _source field to match util.crandKim Alvefur2017-09-161-0/+1
|
* util.format: A string.format wrapper that gracefully handles invalid argumentsWaqas Hussain2017-09-101-0/+74
|
* util.sql: Greedily read all rows so we can close queries early (fixes #391)Matthew Wild2017-08-041-1/+5
|
* util.prosodyctl: Resolve possibly relative pidfile path (fixes inconsistency ↵Kim Alvefur2017-04-241-0/+2
| | | | with mod_posix)
* util.sasl.plain,scram: Record username in sasl state earlierKim Alvefur2017-04-192-2/+3
|
* util.datamanager: Use already known index instead of measuring length each ↵Kim Alvefur2017-04-171-2/+2
| | | | iteration
* util.sql: Produce more SQL-standard-like debug messagesKim Alvefur2017-04-131-1/+8
|
* util.sql: Strip indentation from queries for debug loggingKim Alvefur2017-04-121-0/+1
|
* util.sql: Apply quote transform in engine:execute so it is applied to eg ↵Kim Alvefur2017-04-121-2/+1
| | | | encoding checks in mod_storage_sql (thanks Martin)
* SQL: Use standard quotes for columns and other identifiers, rewrite to grave ↵Kim Alvefur2017-04-101-14/+12
| | | | accents for MySQL only (fixes #885)
* util.array: Add method for filtering out duplicate valuesKim Alvefur2017-03-311-0/+12
|
* util.id: New util for producing random identifiers of varying sizesKim Alvefur2017-03-291-0/+26
|
* util.datamanager: Log where the error came fromKim Alvefur2017-03-281-3/+4
|
* util.datamanager: Rearrange localsKim Alvefur2017-03-281-3/+2
|
* util.datamanager: Use pposix.atomic_appendKim Alvefur2017-02-281-23/+17
|
* util.datamanager: Remove check for file non-existence since ENOENT tells us ↵Kim Alvefur2017-03-221-18/+4
| | | | that already
* util.datamanager: Split long line [luacheck]Kim Alvefur2017-03-221-1/+3
|
* util.dependencies: Give APT command for installing lua-secKim Alvefur2017-03-211-1/+1
|
* util.statistics,statsd,throttle,timer: Replace dependency on LuaSockect with ↵Kim Alvefur2017-03-204-4/+4
| | | | util.time for precision time
* util.array: Add O(n) equality check metamethodKim Alvefur2017-03-161-0/+13
|
* util.envload: Close file handle after reading dataKim Alvefur2017-03-011-1/+4
|
* util.datamanager: Expose atomic_store as store_rawKim Alvefur2017-03-011-0/+1
|
* util.datamanager: Use atomic store function when writing the first entry of ↵Kim Alvefur2017-03-011-4/+1
| | | | a list
* util.datamanager: Import value of ENOENT from util.pposix (if available)Kim Alvefur2017-03-011-0/+1
|
* util.datamanager: Ignore ENOENT (no such file) when loading dataKim Alvefur2017-03-011-4/+13
|
* util.envload: Open file here instead of letting loadfile do it so that all ↵Kim Alvefur2017-03-011-3/+8
| | | | return values from io.open can be collected
* util.adhoc: Pass command data to initial_data callback in order to allow ↵Kim Alvefur2017-02-221-1/+1
| | | | loading per-user settings
* util.dependencies: Normalize whitespaceKim Alvefur2017-01-281-11/+13
|
* util.sslconfig: Remvoe flag merging for 'verify' as this is more of a ↵Kim Alvefur2017-01-261-2/+0
| | | | tri-state field than a set of options
* util.rsm: Add copyright headerKim Alvefur2017-01-231-0/+11
|
* util.rsm: Move out from mod_mam directoryKim Alvefur2016-11-261-0/+87
|
* util.dependencies: Update Debian package names for liblua5.1-lib0 -> lua-lib ↵Kim Alvefur2017-01-061-3/+3
| | | | transition
* util.dependencies: Add check and info about lua-bitops (for mod_websockets)Kim Alvefur2016-12-051-0/+11
|
* util.dependencies: Update links for LuaExpat and LuaSec which have moved to ↵Kim Alvefur2016-12-051-2/+2
| | | | new locations
* util.stanza: Add an is_stanza() function to check if an object is a stanzaKim Alvefur2016-11-281-0/+6
|
* util.datamanager: Shorter patternKim Alvefur2016-11-201-1/+1
|
* util.datamanager: Remove extraneous decoding of + to space, which we never ↵Kim Alvefur2016-11-201-1/+1
| | | | never encode to
* util.datamanager: Use the 'base' argument to tonumber() to indicate hexadecimalKim Alvefur2016-11-201-1/+1
|
* util.envload: Ignore use of Lua 5.1-only setfenv function [luacheck]Kim Alvefur2016-11-201-0/+1
|
* util.pubsub: Fix item retrieval by including the item order as it was before ↵Kim Alvefur2016-11-191-0/+1
| | | | using util.cache (thanks walduhu)
* util.dependencies: Disable warning about Lua 5.2 (but still warn about 5.3)Kim Alvefur2016-11-181-1/+1
|