Kim Alvefur [Mon, 4 Jan 2016 16:47:40 +0000 (17:47 +0100)]
util.ip: Support zone id syntax in IPv6 addresses
daurnimator [Wed, 18 Dec 2013 23:11:47 +0000 (18:11 -0500)]
server_event: addclient: wrapclient already calls startconnection for us [backported from trunk]
Kim Alvefur [Tue, 5 Apr 2016 18:41:50 +0000 (20:41 +0200)]
server_event: Split long list of assignments into multiple lines for readability
Kim Alvefur [Tue, 5 Apr 2016 18:39:36 +0000 (20:39 +0200)]
server_event: Fix indentation (again)
Kim Alvefur [Mon, 4 Apr 2016 19:48:42 +0000 (21:48 +0200)]
mod_roster: Fire event for pending items for good measure
Kim Alvefur [Mon, 4 Apr 2016 15:18:27 +0000 (17:18 +0200)]
mod_roster: Handle roster item removal with event on user deletion
Kim Alvefur [Mon, 4 Apr 2016 15:15:47 +0000 (17:15 +0200)]
mod_presence: Send unavailable presence when roster items are removed (fixes #331)
Kim Alvefur [Mon, 4 Apr 2016 15:15:10 +0000 (17:15 +0200)]
mod_presence, mod_roster: Move responsibility for sending presence on roster removal to mod_presence
Kim Alvefur [Sun, 3 Apr 2016 13:52:40 +0000 (15:52 +0200)]
Merge 0.9->0.10
Kim Alvefur [Fri, 1 Apr 2016 16:56:26 +0000 (18:56 +0200)]
mod_bosh: Skip sending stanzas removed out by filters (fixes #657)
Kim Alvefur [Fri, 1 Apr 2016 13:56:12 +0000 (15:56 +0200)]
storagemanager: Capitalize log message
daurnimator [Mon, 19 Jan 2015 19:01:11 +0000 (14:01 -0500)]
net.server_select: Remove do-nothing os_difftime calls [backported from trunk]
Kim Alvefur [Mon, 28 Mar 2016 17:56:12 +0000 (19:56 +0200)]
net.dns: Import unpack() in forward-compatible way (Fixes compat with Lua5.2+)
Kim Alvefur [Mon, 28 Mar 2016 11:27:42 +0000 (13:27 +0200)]
util.jid: Import select() into local (fixes traceback, tests on Lua 5.2)
Matthew Wild [Sat, 26 Mar 2016 19:55:08 +0000 (19:55 +0000)]
certmanager: Explicitly tonumber() version number segments before doing arithmetic and avoid relying on implicit coercion (thanks David Favro)
Kim Alvefur [Fri, 25 Mar 2016 15:09:34 +0000 (16:09 +0100)]
util.sql: Log errors in transaction to error level with traceback but return only error message (fixes #464)
Kim Alvefur [Wed, 23 Mar 2016 22:21:03 +0000 (23:21 +0100)]
mod_websocket: Send a ping on read timeout
Kim Alvefur [Wed, 23 Mar 2016 13:31:35 +0000 (14:31 +0100)]
mod_websocket: Remove warning about unsolicited pong frames "MAY be sent unsolicited" per RFC 6455 (thanks mt)
Matthew Wild [Wed, 23 Mar 2016 12:17:28 +0000 (12:17 +0000)]
util.sql: Charset should be innocent until proven guilty (initialize charset_ok to true), fixes bug introduced in
187ba2e9c012
Kim Alvefur [Tue, 22 Mar 2016 13:42:55 +0000 (14:42 +0100)]
prosodyctl: Only use host part of JIDs eg components that have node parts (thanks suzyo)
Matthew Wild [Mon, 21 Mar 2016 21:04:14 +0000 (21:04 +0000)]
util.iterators: Fix use of incorrect variable accidentally introduced in
a9ef93bc81d9
Kim Alvefur [Mon, 21 Mar 2016 08:50:52 +0000 (09:50 +0100)]
util.sql: Catch errors from LuaDBI connect (Fixes #568)
Kim Alvefur [Mon, 21 Mar 2016 08:33:12 +0000 (09:33 +0100)]
mod_storage_sql: Make sure all serialization errors are propagated
Kim Alvefur [Sat, 19 Mar 2016 15:35:43 +0000 (16:35 +0100)]
modulemanager: Silence log message about attempts to load already loaded modules for shared modules
Matthew Wild [Fri, 18 Mar 2016 14:03:14 +0000 (14:03 +0000)]
mod_component: Some cleanup [luacheck]
Matthew Wild [Fri, 18 Mar 2016 13:58:55 +0000 (13:58 +0000)]
mod_component: Fire event when component disconnects
Kim Alvefur [Fri, 18 Mar 2016 10:55:40 +0000 (11:55 +0100)]
Merge
Kim Alvefur [Fri, 18 Mar 2016 10:51:58 +0000 (11:51 +0100)]
mod_saslauth: Disable DIGEST-MD5 by default (closes #515)
Matthew Wild [Fri, 18 Mar 2016 10:24:46 +0000 (10:24 +0000)]
prosody, prosodyctl: Allow setting CFG_* variables via Lua interpreter before loading Prosody. Fixes #308.
Matthew Wild [Thu, 17 Mar 2016 23:15:08 +0000 (23:15 +0000)]
util.jid+tests: Add simple helpers... node(), host() and resource() for extracting specific parts of a JID
Kim Alvefur [Thu, 17 Mar 2016 23:08:33 +0000 (00:08 +0100)]
mod_websocket: Make sure stanza xmlns filter runs late in the chain
Kim Alvefur [Thu, 17 Mar 2016 21:25:56 +0000 (22:25 +0100)]
mod_register: Make sure only an on_evict function or nil is passed to util.cache
Matthew Wild [Thu, 17 Mar 2016 19:14:58 +0000 (19:14 +0000)]
tests: util.cache: Tests for different return values of on_evict
Matthew Wild [Thu, 17 Mar 2016 19:08:42 +0000 (19:08 +0000)]
util.cache: Change behaviour of on_evict (and tests). Now accepts false instead of a function (never evict), or on_evict can return false to prevent eviction.
Matthew Wild [Thu, 17 Mar 2016 19:07:40 +0000 (19:07 +0000)]
util.cache: Add head() and tail() methods (and tests)
Kim Alvefur [Thu, 17 Mar 2016 17:08:16 +0000 (18:08 +0100)]
CHANGES: Remove mention of async
Kim Alvefur [Thu, 17 Mar 2016 17:00:35 +0000 (18:00 +0100)]
util.async: Remove to prevent blocking a stable release
Kim Alvefur [Thu, 17 Mar 2016 11:47:24 +0000 (12:47 +0100)]
mod_c2s: Remove use of util.async
Kim Alvefur [Thu, 17 Mar 2016 11:46:52 +0000 (12:46 +0100)]
Backed out BOSH use of util.async (changeset
f0687c313cf1)
Kim Alvefur [Mon, 14 Mar 2016 17:27:16 +0000 (18:27 +0100)]
mod_presence: Fix partial rename
Kim Alvefur [Mon, 14 Mar 2016 16:26:27 +0000 (17:26 +0100)]
mod_presence: Move function for selecting "top resources" into a new util.presence
Kim Alvefur [Mon, 14 Mar 2016 12:27:02 +0000 (13:27 +0100)]
mod_s2s: Include name of remote server when it's missing the stream ID (thanks Ge0rG)
Kim Alvefur [Sun, 13 Mar 2016 17:35:00 +0000 (18:35 +0100)]
util.sql: Remove unused arguments [luacheck]
Kim Alvefur [Sun, 13 Mar 2016 17:31:53 +0000 (18:31 +0100)]
util.sql: Don't break out of result retreival loops
Kim Alvefur [Sun, 13 Mar 2016 16:43:33 +0000 (17:43 +0100)]
mod_storage_sql: Allow loops over results to end on their own
Kim Alvefur [Sun, 13 Mar 2016 16:42:22 +0000 (17:42 +0100)]
mod_storage_sql: Add LIMIT clause to queries where only a single row is expected
Kim Alvefur [Sun, 13 Mar 2016 16:38:49 +0000 (17:38 +0100)]
util.sql: Move per-driver (currenly only PostgreSQL) query transform into its own method
Kim Alvefur [Sat, 12 Mar 2016 17:13:24 +0000 (18:13 +0100)]
rostermanager: Remove FIXME, per XMPP Core 8.1.1.1, we do not need to set the 'to' attribute
Kim Alvefur [Fri, 11 Mar 2016 12:37:18 +0000 (13:37 +0100)]
mod_watchregistrations: Use type-specific config API for 'registration_notification'
Kim Alvefur [Fri, 11 Mar 2016 12:36:48 +0000 (13:36 +0100)]
prosodyctl check: Add 'vcard_compatibility' to deprecated options
Kim Alvefur [Fri, 11 Mar 2016 12:34:32 +0000 (13:34 +0100)]
MUC: Use type-specific config API for the 'name' option
Kim Alvefur [Fri, 11 Mar 2016 12:13:20 +0000 (13:13 +0100)]
mod_presence: Use type-specific config API for boolean 'ignore_presence_priority' option
Thijs Alkemade [Thu, 10 Mar 2016 09:13:57 +0000 (10:13 +0100)]
util.dependencies: Show the full error when a symbol is not found (i.e., when running Prosody with the wrong version of Lua).
Matthew Wild [Thu, 10 Mar 2016 17:53:36 +0000 (17:53 +0000)]
util.prosodyctl: Remove unused variable [luacheck]
Matthew Wild [Thu, 10 Mar 2016 17:53:17 +0000 (17:53 +0000)]
util.json: Variable renaming to avoid shadowing [luacheck]
Matthew Wild [Thu, 10 Mar 2016 17:52:57 +0000 (17:52 +0000)]
util.iterators: Variable renaming to avoid shadowing [luacheck]
Matthew Wild [Thu, 10 Mar 2016 17:52:03 +0000 (17:52 +0000)]
net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck]
Matthew Wild [Thu, 10 Mar 2016 17:49:46 +0000 (17:49 +0000)]
util.iterators: Return initial var from upstream iterator [luacheck]
Matthew Wild [Thu, 10 Mar 2016 17:48:53 +0000 (17:48 +0000)]
util.iterators: Don't replace var, as we should preserve var from the original iterator [luacheck]
Matthew Wild [Wed, 9 Mar 2016 12:59:43 +0000 (12:59 +0000)]
tests: Expand util.stanza tests
Matthew Wild [Wed, 9 Mar 2016 12:37:56 +0000 (12:37 +0000)]
util.stanza: Some code cleanup [luacheck]
Matthew Wild [Tue, 8 Mar 2016 17:49:33 +0000 (17:49 +0000)]
prosodyctl: Fix typo'd variable name [luacheck]
Kim Alvefur [Mon, 7 Mar 2016 11:15:39 +0000 (12:15 +0100)]
prosodyctl: Use already sorted array of module names [luacheck]
Kim Alvefur [Mon, 7 Mar 2016 11:13:22 +0000 (12:13 +0100)]
prosodyctl: Include libevent version in "about" output if luaevent is available
Kim Alvefur [Sun, 6 Mar 2016 17:51:11 +0000 (18:51 +0100)]
storagemanager: Fix saving data in map shim when no prior data exists
Matthew Wild [Sat, 5 Mar 2016 23:42:01 +0000 (23:42 +0000)]
tests: Add basic tests for util.xml and util.xmppstream
Matthew Wild [Sat, 5 Mar 2016 20:48:20 +0000 (20:48 +0000)]
tests: Add extra tests for util.json
Matthew Wild [Fri, 4 Mar 2016 22:27:04 +0000 (22:27 +0000)]
util.json: Fix encoding of json.null (bug introduced in
bf1f09a5bcf7)
Matthew Wild [Fri, 4 Mar 2016 22:17:38 +0000 (22:17 +0000)]
Makefile: Reduce verbosity of 'make test' so it only shows test failures
Matthew Wild [Fri, 4 Mar 2016 22:17:16 +0000 (22:17 +0000)]
Add tests for util.json
Kim Alvefur [Thu, 3 Mar 2016 15:05:34 +0000 (16:05 +0100)]
Merge 0.9->0.10
Kim Alvefur [Wed, 2 Mar 2016 15:43:42 +0000 (16:43 +0100)]
mod_welcome: Pass default text to config API as default value
Kim Alvefur [Wed, 2 Mar 2016 15:42:59 +0000 (16:42 +0100)]
mod_welcome: Use type-specific config API
Kim Alvefur [Wed, 2 Mar 2016 15:32:37 +0000 (16:32 +0100)]
Merge 0.9->0.10
Kim Alvefur [Sun, 28 Feb 2016 19:01:13 +0000 (20:01 +0100)]
util.sasl.scram: Rename variable in places missed in
65e36b81d56a (thanks mt)
Kim Alvefur [Sun, 28 Feb 2016 18:26:45 +0000 (19:26 +0100)]
util.sasl.scram: Remove unused initial value [luacheck]
Kim Alvefur [Sun, 28 Feb 2016 18:26:14 +0000 (19:26 +0100)]
util.sasl.scram: Rename variable to avoid name clash [luacheck]
Kim Alvefur [Sun, 28 Feb 2016 18:25:39 +0000 (19:25 +0100)]
util.sasl.anonymous: Remove unused locals [luacheck]
Kim Alvefur [Sun, 28 Feb 2016 17:47:11 +0000 (18:47 +0100)]
prosodyctl: One month is 31 days, no 13 (thanks av6)
Kim Alvefur [Sun, 28 Feb 2016 17:45:27 +0000 (18:45 +0100)]
prosodyctl: Fix typo (thanks av6)
Kim Alvefur [Sun, 28 Feb 2016 17:24:12 +0000 (18:24 +0100)]
prosodyctl: check certs: Warn about certificate expiry in the near future
Kim Alvefur [Sun, 28 Feb 2016 17:23:24 +0000 (18:23 +0100)]
prosodyctl: check certs: Update messages to account for 'ssl' option maybe not existing
Kim Alvefur [Sun, 28 Feb 2016 17:22:23 +0000 (18:22 +0100)]
prosodyctl: check certs: Use certmanager to get the final ssl config in order to support the new certificate(s) config option
Kim Alvefur [Sun, 28 Feb 2016 14:03:16 +0000 (15:03 +0100)]
util.termcolours: Rename loop variable [luacheck]
Kim Alvefur [Sun, 28 Feb 2016 14:03:01 +0000 (15:03 +0100)]
util.termcolours: Validate color codes, fixes traceback
Kim Alvefur [Sat, 27 Feb 2016 15:56:34 +0000 (16:56 +0100)]
util.termcolours: Add some CSS color names
Kim Alvefur [Sat, 27 Feb 2016 15:47:12 +0000 (16:47 +0100)]
util.termcolours: Add 256 color support
Kim Alvefur [Sat, 27 Feb 2016 14:29:56 +0000 (15:29 +0100)]
util.datamanager: Explicit handling of each error condition (see #632)
Kim Alvefur [Thu, 25 Feb 2016 21:37:41 +0000 (22:37 +0100)]
Merge 0.9->0.10
Kim Alvefur [Thu, 25 Feb 2016 21:33:58 +0000 (22:33 +0100)]
util.termcolours: Remove argument from noop function [luacheck]
Kim Alvefur [Thu, 25 Feb 2016 21:33:40 +0000 (22:33 +0100)]
util.termcolours: Silence luacheck warning
Kim Alvefur [Thu, 25 Feb 2016 21:32:13 +0000 (22:32 +0100)]
util.template: Use separate variables for source and compiled function [luacheck]
Kim Alvefur [Thu, 25 Feb 2016 21:31:13 +0000 (22:31 +0100)]
util.template: Silence luacheck warnings about unused loop vars
Kim Alvefur [Thu, 25 Feb 2016 14:36:12 +0000 (15:36 +0100)]
certs/Makefile: Add target for generating DH params
Kim Alvefur [Thu, 25 Feb 2016 14:35:44 +0000 (15:35 +0100)]
prosodyctl: Allow a DN path to be given to 'cert generate' command (fixes #349)
Kim Alvefur [Thu, 25 Feb 2016 14:34:38 +0000 (15:34 +0100)]
util.openssl: Allow order of distinguished name fields to be included in config
Kim Alvefur [Wed, 24 Feb 2016 10:15:27 +0000 (11:15 +0100)]
prosodyctl: Create host.sessions table, (needed by
1295e14614f4) (thanks goffi)
Kim Alvefur [Mon, 22 Feb 2016 21:56:05 +0000 (22:56 +0100)]
util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias)
Kim Alvefur [Mon, 22 Feb 2016 17:44:43 +0000 (18:44 +0100)]
util.crand: C binding to one of OpenSSL, Linux getrandom() or OpenBSD arc4random() CSPRNG
Kim Alvefur [Mon, 22 Feb 2016 16:43:40 +0000 (17:43 +0100)]
util.iterators: Use table.pack() on Lua 5.2