prosody.git
8 years agoMerge 0.10->trunk
Kim Alvefur [Fri, 2 Oct 2015 10:13:32 +0000 (12:13 +0200)]
Merge 0.10->trunk

8 years agoBackout 7e820979fd9b (broke tests)
Kim Alvefur [Fri, 2 Oct 2015 10:12:24 +0000 (12:12 +0200)]
Backout 7e820979fd9b (broke tests)

8 years agoMerge 0.10->trunk
Kim Alvefur [Sat, 26 Sep 2015 22:37:18 +0000 (00:37 +0200)]
Merge 0.10->trunk

8 years agoMerge 0.9->0.10
Kim Alvefur [Sat, 26 Sep 2015 22:36:34 +0000 (00:36 +0200)]
Merge 0.9->0.10

8 years agoconfigure,util-src/Makefile: Make a variable that includes -l for OpenSSL (like with...
Kim Alvefur [Sat, 26 Sep 2015 22:28:46 +0000 (00:28 +0200)]
configure,util-src/Makefile: Make a variable that includes -l for OpenSSL (like with IDNA_LIBS)

8 years agoMakefile: Use hypen to tell Make when to ignore errors
Kim Alvefur [Sat, 26 Sep 2015 22:16:34 +0000 (00:16 +0200)]
Makefile: Use hypen to tell Make when to ignore errors

8 years agoMakefile: Support generating prosody.version from hg archive metadata file
Kim Alvefur [Sat, 26 Sep 2015 22:15:57 +0000 (00:15 +0200)]
Makefile: Support generating prosody.version from hg archive metadata file

8 years agoMakefile: Simplify generation of prosody.version using magic Make magic
Kim Alvefur [Sat, 26 Sep 2015 22:14:18 +0000 (00:14 +0200)]
Makefile: Simplify generation of prosody.version using magic Make magic

8 years agoutil-src/Makefile: Remove redundant variables (set in config.unix already)
Kim Alvefur [Sat, 26 Sep 2015 22:12:07 +0000 (00:12 +0200)]
util-src/Makefile: Remove redundant variables (set in config.unix already)

8 years agoutil-src/Makefile: Don't make exceptions for how to build .so for util.hashes and...
Kim Alvefur [Sat, 26 Sep 2015 22:10:18 +0000 (00:10 +0200)]
util-src/Makefile: Don't make exceptions for how to build .so for util.hashes and util.encodings

8 years agoutil-src/Makefile: Tell Make how to build .so from .o in a modern way (Let built...
Kim Alvefur [Sat, 26 Sep 2015 22:08:46 +0000 (00:08 +0200)]
util-src/Makefile: Tell Make how to build .so from .o in a modern way (Let built-in rules handle .o)

8 years agoutil-src/Makefile: Move Lua include path into CFLAGS variable
Kim Alvefur [Sat, 26 Sep 2015 22:04:14 +0000 (00:04 +0200)]
util-src/Makefile: Move Lua include path into CFLAGS variable

8 years agoconfigure, util-src/Makefile: Move OS X deployment flag to an C compiler argument...
Kim Alvefur [Sat, 26 Sep 2015 21:42:46 +0000 (23:42 +0200)]
configure, util-src/Makefile: Move OS X deployment flag to an C compiler argument set by configure

8 years agoutil-src/Makefile: Use variables for install binary and target directory
Kim Alvefur [Sat, 26 Sep 2015 21:38:09 +0000 (23:38 +0200)]
util-src/Makefile: Use variables for install binary and target directory

8 years agoutil-src/Makefile: Move list of .so files in a variable
Kim Alvefur [Sat, 26 Sep 2015 21:29:50 +0000 (23:29 +0200)]
util-src/Makefile: Move list of .so files in a variable

8 years agomod_posix: Detect failure to load util.signal by first pcall return value not by...
Kim Alvefur [Sat, 26 Sep 2015 19:41:11 +0000 (21:41 +0200)]
mod_posix: Detect failure to load util.signal by first pcall return value not by type of the second

8 years agomod_posix: Normalize indentation
Kim Alvefur [Sat, 26 Sep 2015 19:39:26 +0000 (21:39 +0200)]
mod_posix: Normalize indentation

8 years agomod_http_files: Translate forward slashes to local directory separators
Kim Alvefur [Sat, 26 Sep 2015 17:35:56 +0000 (19:35 +0200)]
mod_http_files: Translate forward slashes to local directory separators

8 years agomod_http_files: Strip trailing directory separator regardless of directionality of...
Kim Alvefur [Sat, 26 Sep 2015 17:34:58 +0000 (19:34 +0200)]
mod_http_files: Strip trailing directory separator regardless of directionality of the slash (fixes #545)

8 years agoMerge 0.10->trunk
Kim Alvefur [Fri, 25 Sep 2015 16:11:45 +0000 (18:11 +0200)]
Merge 0.10->trunk

8 years agoMerge 0.9->0.10
Kim Alvefur [Fri, 25 Sep 2015 16:11:24 +0000 (18:11 +0200)]
Merge 0.9->0.10

8 years agoMerge 0.10->trunk
Kim Alvefur [Fri, 25 Sep 2015 16:08:25 +0000 (18:08 +0200)]
Merge 0.10->trunk

8 years agoMerge
Kim Alvefur [Fri, 25 Sep 2015 16:07:33 +0000 (18:07 +0200)]
Merge

8 years agoserver_event: Remove needless scoping around add_task
Kim Alvefur [Fri, 25 Sep 2015 16:07:08 +0000 (18:07 +0200)]
server_event: Remove needless scoping around add_task

8 years agoMerge 0.10->trunk
Kim Alvefur [Fri, 25 Sep 2015 16:03:44 +0000 (18:03 +0200)]
Merge 0.10->trunk

8 years agoserver_event: Fix indentation
Kim Alvefur [Fri, 25 Sep 2015 15:56:21 +0000 (17:56 +0200)]
server_event: Fix indentation

8 years agoserver_event: Put function keyword on same line as the coroutine.wrap it's being...
Kim Alvefur [Fri, 25 Sep 2015 15:55:06 +0000 (17:55 +0200)]
server_event: Put function keyword on same line as the coroutine.wrap it's being passed to

8 years agoMerge 0.9->0.10
Matthew Wild [Fri, 25 Sep 2015 15:51:42 +0000 (16:51 +0100)]
Merge 0.9->0.10

8 years agomod_pep: Don't store contacts' subscriptions to a user's nodes when that user is...
Matthew Wild [Fri, 25 Sep 2015 15:48:25 +0000 (16:48 +0100)]
mod_pep: Don't store contacts' subscriptions to a user's nodes when that user is offline

8 years agoserver_event: Normalize indentation
Kim Alvefur [Fri, 25 Sep 2015 15:43:21 +0000 (17:43 +0200)]
server_event: Normalize indentation

8 years agonet.dns: Use new IPv4-specific socket factory if available (fixes dns on libevent...
Kim Alvefur [Fri, 25 Sep 2015 15:32:13 +0000 (17:32 +0200)]
net.dns: Use new IPv4-specific socket factory if available (fixes dns on libevent with latest development version of luasocket)

8 years agoserver_event: Remove unused argument [luacheck]
Kim Alvefur [Fri, 25 Sep 2015 15:26:47 +0000 (17:26 +0200)]
server_event: Remove unused argument [luacheck]

8 years agoserver_event: Comment out the unused vdebug function [luacheck]
Kim Alvefur [Fri, 25 Sep 2015 15:26:29 +0000 (17:26 +0200)]
server_event: Comment out the unused vdebug function [luacheck]

8 years agoserver_event: Remove unused former argument (fixes global access) [luacheck]
Kim Alvefur [Fri, 25 Sep 2015 15:24:43 +0000 (17:24 +0200)]
server_event: Remove unused former argument (fixes global access) [luacheck]

8 years agoserver_event: Rename luaevent module variable to avoid name clash [luacheck]
Kim Alvefur [Fri, 25 Sep 2015 15:21:00 +0000 (17:21 +0200)]
server_event: Rename luaevent module variable to avoid name clash [luacheck]

8 years agoserver_event: Add luacheck annotations
Kim Alvefur [Fri, 25 Sep 2015 15:25:46 +0000 (17:25 +0200)]
server_event: Add luacheck annotations

8 years agoserver_event: Remove needless scoping and indentation
Kim Alvefur [Fri, 25 Sep 2015 15:12:55 +0000 (17:12 +0200)]
server_event: Remove needless scoping and indentation

8 years agoserver_event: Move local references to various functions to top of file
Kim Alvefur [Fri, 25 Sep 2015 15:02:17 +0000 (17:02 +0200)]
server_event: Move local references to various functions to top of file

8 years agoserver_event: Replace implementation of ordered set with a simple table set
Kim Alvefur [Fri, 25 Sep 2015 14:45:02 +0000 (16:45 +0200)]
server_event: Replace implementation of ordered set with a simple table set

8 years agomod_s2s: Account for connections that time out in connection count measure
Kim Alvefur [Fri, 25 Sep 2015 13:16:25 +0000 (15:16 +0200)]
mod_s2s: Account for connections that time out in connection count measure

8 years agoMerge 0.10->trunk
Kim Alvefur [Thu, 24 Sep 2015 18:15:19 +0000 (20:15 +0200)]
Merge 0.10->trunk

8 years agomod_c2s, mod_s2s: Close incoming connections if there are no features to offer on...
Kim Alvefur [Thu, 24 Sep 2015 18:05:23 +0000 (20:05 +0200)]
mod_c2s, mod_s2s: Close incoming connections if there are no features to offer on incomplete streams (fixes #285)

8 years agoprosodyctl check: Warn if certificate checking is enforced but LuaSec is too old
Kim Alvefur [Thu, 24 Sep 2015 18:02:57 +0000 (20:02 +0200)]
prosodyctl check: Warn if certificate checking is enforced but LuaSec is too old

8 years agoprosodyctl check: Warn if encryption is required but LuaSec is unavailable
Kim Alvefur [Thu, 24 Sep 2015 18:02:00 +0000 (20:02 +0200)]
prosodyctl check: Warn if encryption is required but LuaSec is unavailable

8 years agoMerge 0.10->trunk
Kim Alvefur [Mon, 21 Sep 2015 23:31:52 +0000 (01:31 +0200)]
Merge 0.10->trunk

8 years agosessionmanager: Make session.send() return true unless there really is an error
Kim Alvefur [Mon, 21 Sep 2015 21:19:48 +0000 (23:19 +0200)]
sessionmanager: Make session.send() return true unless there really is an error

8 years agoplugins: Explicitly return to halt event propagation (session.send sometimes does...
Kim Alvefur [Mon, 21 Sep 2015 21:06:22 +0000 (23:06 +0200)]
plugins: Explicitly return to halt event propagation (session.send sometimes does not return true)

8 years agoMakefile: Fix building prosody.version (.hg/dirstate is a file, not a directory)
Kim Alvefur [Mon, 21 Sep 2015 21:00:49 +0000 (23:00 +0200)]
Makefile: Fix building prosody.version (.hg/dirstate is a file, not a directory)

8 years agoMerge 0.10->trunk
Kim Alvefur [Sat, 19 Sep 2015 15:51:20 +0000 (17:51 +0200)]
Merge 0.10->trunk

8 years agomod_admin_telnet: Fix indentation
Kim Alvefur [Fri, 18 Sep 2015 14:16:10 +0000 (16:16 +0200)]
mod_admin_telnet: Fix indentation

8 years agoprosodyctl: Move files out of the way when generating new cert or key
Kim Alvefur [Sat, 19 Sep 2015 15:46:46 +0000 (17:46 +0200)]
prosodyctl: Move files out of the way when generating new cert or key

8 years agoxep227toprosody: Pass parser to callbacks (needed since addition of stanza size limits)
Kim Alvefur [Fri, 18 Sep 2015 14:14:43 +0000 (16:14 +0200)]
xep227toprosody: Pass parser to callbacks (needed since addition of stanza size limits)

8 years agoutil.timer: Fix indentation
Kim Alvefur [Fri, 18 Sep 2015 14:08:35 +0000 (16:08 +0200)]
util.timer: Fix indentation

8 years agoMerge 0.10->trunk
Kim Alvefur [Thu, 17 Sep 2015 20:15:26 +0000 (22:15 +0200)]
Merge 0.10->trunk

8 years agoMUC: Prevent double replies when MUC affiliation/role change requests fail.
Lance Stout [Thu, 17 Sep 2015 20:02:09 +0000 (13:02 -0700)]
MUC: Prevent double replies when MUC affiliation/role change requests fail.

8 years agomod_offline: Decrease priority of event handlers so 3rd party hooks fire first by...
Kim Alvefur [Wed, 16 Sep 2015 13:18:30 +0000 (15:18 +0200)]
mod_offline: Decrease priority of event handlers so 3rd party hooks fire first by default

8 years agomod_blocklist: Explicitly halt event propagation after returning a reply (send return...
Kim Alvefur [Wed, 16 Sep 2015 13:16:51 +0000 (15:16 +0200)]
mod_blocklist: Explicitly halt event propagation after returning a reply (send returns nil sometimes)

8 years agoMUC: Fix traceback in request for MUC affiliation lists by non-affiliated (thanks...
Kim Alvefur [Tue, 15 Sep 2015 17:39:57 +0000 (19:39 +0200)]
MUC: Fix traceback in request for MUC affiliation lists by non-affiliated (thanks Lance)

8 years agomod_tls: Fix inhertinance of 'ssl' option from "parent" host to subdomain (fixes...
Kim Alvefur [Tue, 15 Sep 2015 15:51:56 +0000 (17:51 +0200)]
mod_tls: Fix inhertinance of 'ssl' option from "parent" host to subdomain (fixes #511)

8 years agoMUC: Break a very long line
Kim Alvefur [Sat, 12 Sep 2015 16:52:39 +0000 (18:52 +0200)]
MUC: Break a very long line

8 years agoutil.dataforms: Fix interaction of required fields and empty string values (fixes...
Kim Alvefur [Sat, 12 Sep 2015 15:49:47 +0000 (17:49 +0200)]
util.dataforms: Fix interaction of required fields and empty string values (fixes #521)

8 years agoutil.dataforms: Refactor parsing to reuse simple text parser instead of duplicate...
Kim Alvefur [Sat, 12 Sep 2015 15:40:14 +0000 (17:40 +0200)]
util.dataforms: Refactor parsing to reuse simple text parser instead of duplicate code

8 years agomod_pep: Document data structures, so I don't have to spend time remembering every...
Matthew Wild [Fri, 4 Sep 2015 10:26:51 +0000 (11:26 +0100)]
mod_pep: Document data structures, so I don't have to spend time remembering every time I work on this module

8 years agoMerge 0.10->trunk
Matthew Wild [Fri, 4 Sep 2015 10:11:40 +0000 (11:11 +0100)]
Merge 0.10->trunk

8 years agotests/run_tests.sh: Let status code propagate to shell
Matthew Wild [Fri, 4 Sep 2015 09:56:27 +0000 (10:56 +0100)]
tests/run_tests.sh: Let status code propagate to shell

8 years agotests: Return status code depending on whether tests passed
Matthew Wild [Fri, 4 Sep 2015 09:55:39 +0000 (10:55 +0100)]
tests: Return status code depending on whether tests passed

8 years agoMerge 0.10->trunk
Kim Alvefur [Thu, 3 Sep 2015 21:49:15 +0000 (23:49 +0200)]
Merge 0.10->trunk

8 years agoutil.stanza: Export xml_escape (missed during removal of module() calls)
Kim Alvefur [Thu, 3 Sep 2015 21:39:00 +0000 (23:39 +0200)]
util.stanza: Export xml_escape (missed during removal of module() calls)

8 years agoMerge 0.10->trunk
Matthew Wild [Thu, 3 Sep 2015 15:43:46 +0000 (16:43 +0100)]
Merge 0.10->trunk

8 years agoMerge 0.10->trunk
Matthew Wild [Wed, 2 Sep 2015 17:55:35 +0000 (18:55 +0100)]
Merge 0.10->trunk

8 years agoconfigure, Makefile: Make compatible with plain Bourne shell as used on Solaris....
Matthew Wild [Wed, 2 Sep 2015 17:54:34 +0000 (18:54 +0100)]
configure, Makefile: Make compatible with plain Bourne shell as used on Solaris. Fixes #418 (thanks jcea)

8 years agostoragemanager: Check if drivers support purging, warn otherwise
Kim Alvefur [Wed, 2 Sep 2015 13:26:28 +0000 (15:26 +0200)]
storagemanager: Check if drivers support purging, warn otherwise

8 years agoprosody: Set a luasocket global, fixes undefined global access in loop() (pending...
Kim Alvefur [Wed, 2 Sep 2015 12:25:30 +0000 (14:25 +0200)]
prosody: Set a luasocket global, fixes undefined global access in loop() (pending util.startup)

8 years agostoragemanager: Export purge (fixes deleting users from usermanager) (thanks mt)
Kim Alvefur [Wed, 2 Sep 2015 12:23:09 +0000 (14:23 +0200)]
storagemanager: Export purge (fixes deleting users from usermanager) (thanks mt)

8 years agoutil.sql: Export db2uri (mod_storage_sql2 command uses it) (thanks mike)
Kim Alvefur [Wed, 2 Sep 2015 12:14:22 +0000 (14:14 +0200)]
util.sql: Export db2uri (mod_storage_sql2 command uses it) (thanks mike)

8 years agoutil.sql: Log when transactions begin
Kim Alvefur [Sun, 30 Aug 2015 11:45:36 +0000 (13:45 +0200)]
util.sql: Log when transactions begin

8 years agomod_carbons: Get full_ and bare_sessions from the prosody global [luacheck]
Kim Alvefur [Thu, 27 Aug 2015 10:17:12 +0000 (12:17 +0200)]
mod_carbons: Get full_ and bare_sessions from the prosody global [luacheck]

8 years agomod_carbons: Carbon chat messages or normal messages that have a body
Kim Alvefur [Wed, 26 Aug 2015 15:35:41 +0000 (17:35 +0200)]
mod_carbons: Carbon chat messages or normal messages that have a body

8 years agoutil.hex: Normalize hex to lowercase and discard non-hex input
Kim Alvefur [Wed, 26 Aug 2015 12:32:20 +0000 (14:32 +0200)]
util.hex: Normalize hex to lowercase and discard non-hex input

8 years agoMerge 0.9->0.10
Kim Alvefur [Wed, 26 Aug 2015 11:17:10 +0000 (13:17 +0200)]
Merge 0.9->0.10

8 years agomod_admin_adhoc: Declare local variable, don't set a global [luacheck]
Kim Alvefur [Wed, 26 Aug 2015 11:08:51 +0000 (13:08 +0200)]
mod_admin_adhoc: Declare local variable, don't set a global [luacheck]

8 years agomod_admin_adhoc: Import missing util.set (fixes #518)
Kim Alvefur [Wed, 26 Aug 2015 11:08:10 +0000 (13:08 +0200)]
mod_admin_adhoc: Import missing util.set (fixes #518)

8 years agoplugins/muc/muc.lib: Fix issue #505 where unavailable presences were never used
daurnimator [Mon, 24 Aug 2015 03:16:49 +0000 (13:16 +1000)]
plugins/muc/muc.lib: Fix issue #505 where unavailable presences were never used

8 years agoMUC: Remove duplicated import of muc/persistent (4caef6d53304 and this fixes #482)
Kim Alvefur [Wed, 26 Aug 2015 18:21:12 +0000 (20:21 +0200)]
MUC: Remove duplicated import of muc/persistent (4caef6d53304 and this fixes #482)

8 years agoMerge 0.10->trunk
Kim Alvefur [Wed, 26 Aug 2015 11:17:37 +0000 (13:17 +0200)]
Merge 0.10->trunk

8 years agoMerge 0.10->trunk
Kim Alvefur [Sat, 22 Aug 2015 19:01:00 +0000 (21:01 +0200)]
Merge 0.10->trunk

8 years agomod_websocket: Import sessionmanager (fixes traceback)
Kim Alvefur [Fri, 21 Aug 2015 09:26:34 +0000 (11:26 +0200)]
mod_websocket: Import sessionmanager (fixes traceback)

8 years agostoragemanager: Add forward declaration to fix use of open() before it's defined
Kim Alvefur [Thu, 20 Aug 2015 21:57:22 +0000 (23:57 +0200)]
storagemanager: Add forward declaration to fix use of open() before it's defined

8 years agoMerge 0.10->trunk
Kim Alvefur [Thu, 20 Aug 2015 11:05:22 +0000 (13:05 +0200)]
Merge 0.10->trunk

8 years agoluacheckrc: Ignore unused _ENV variable
Kim Alvefur [Thu, 20 Aug 2015 08:10:36 +0000 (10:10 +0200)]
luacheckrc: Ignore unused _ENV variable

8 years agoejabberd2prosody: Support password stored as SCRAM hashes
Kim Alvefur [Thu, 20 Aug 2015 07:14:15 +0000 (09:14 +0200)]
ejabberd2prosody: Support password stored as SCRAM hashes

8 years agoMUC: Fix logic error
Kim Alvefur [Sun, 16 Aug 2015 23:58:53 +0000 (01:58 +0200)]
MUC: Fix logic error

8 years agoMerge 0.10->trunk
Kim Alvefur [Tue, 11 Aug 2015 08:29:25 +0000 (10:29 +0200)]
Merge 0.10->trunk

8 years agoMerge 0.9->0.10
Kim Alvefur [Mon, 10 Aug 2015 20:16:05 +0000 (22:16 +0200)]
Merge 0.9->0.10

8 years agomod_component: Fire an event on successful component authentication (For Goffi)
Kim Alvefur [Mon, 10 Aug 2015 20:13:02 +0000 (22:13 +0200)]
mod_component: Fire an event on successful component authentication (For Goffi)

8 years agoutil.interpolation: Add support for filter functions
Kim Alvefur [Fri, 7 Aug 2015 11:31:12 +0000 (13:31 +0200)]
util.interpolation: Add support for filter functions

8 years agoMerge
Matthew Wild [Mon, 27 Jul 2015 08:38:40 +0000 (09:38 +0100)]
Merge

8 years agoplugins/muc: Move loading of optional muc libraries from muc.lib.lua to mod_muc
daurnimator [Mon, 27 Jul 2015 08:34:51 +0000 (18:34 +1000)]
plugins/muc: Move loading of optional muc libraries from muc.lib.lua to mod_muc

8 years agomod_muc: Fix a traceback when an owner joins a room
Emmanuel Gil Peyrot [Sat, 25 Jul 2015 14:49:00 +0000 (15:49 +0100)]
mod_muc: Fix a traceback when an owner joins a room

8 years agoutil.{interpolation,prosodyctl,sql}: Trim trailing whitespace
Kim Alvefur [Fri, 17 Jul 2015 10:43:04 +0000 (12:43 +0200)]
util.{interpolation,prosodyctl,sql}: Trim trailing whitespace