prosody.git
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

8 years agoMerge 0.10->trunk
Matthew Wild [Wed, 8 Jul 2015 23:14:27 +0000 (00:14 +0100)]
Merge 0.10->trunk

8 years agoutil.sql: Add safety check to ensure our chosen connection charset is actually being...
Matthew Wild [Wed, 8 Jul 2015 14:25:42 +0000 (15:25 +0100)]
util.sql: Add safety check to ensure our chosen connection charset is actually being used (MySQL)

8 years agoutil.sql: Fix log level of debug message
Matthew Wild [Wed, 8 Jul 2015 14:16:17 +0000 (15:16 +0100)]
util.sql: Fix log level of debug message

8 years agoutil.sql: Log debug message when connecting to database
Matthew Wild [Wed, 8 Jul 2015 14:15:32 +0000 (15:15 +0100)]
util.sql: Log debug message when connecting to database

8 years agoutil.sql: Make set_encoding() return failure of SET NAMES
Matthew Wild [Wed, 8 Jul 2015 14:14:24 +0000 (15:14 +0100)]
util.sql: Make set_encoding() return failure of SET NAMES

8 years agoutil.sql: Return failure if set_encoding() fails
Matthew Wild [Wed, 8 Jul 2015 14:10:25 +0000 (15:10 +0100)]
util.sql: Return failure if set_encoding() fails

8 years agomod_storage_sql2: Upgrade table if its charset does not match our connection's charse...
Matthew Wild [Wed, 8 Jul 2015 14:07:23 +0000 (15:07 +0100)]
mod_storage_sql2: Upgrade table if its charset does not match our connection's charset (thanks Zash)

8 years agoutil.sql: Use appropriate collation for the chosen character set - fixes MySQL silent...
Matthew Wild [Wed, 8 Jul 2015 14:06:20 +0000 (15:06 +0100)]
util.sql: Use appropriate collation for the chosen character set - fixes MySQL silently ignoring our SET NAMES command when we use utf8mb4

8 years agoutil.sql: Create table with same charset as the charset we selected for our connectio...
Matthew Wild [Wed, 8 Jul 2015 14:04:23 +0000 (15:04 +0100)]
util.sql: Create table with same charset as the charset we selected for our connection, also use corresponding _bin collation

8 years agoutil.sql: Allow onconnect callback to fail connection to the DB by returning false...
Matthew Wild [Tue, 7 Jul 2015 16:43:14 +0000 (17:43 +0100)]
util.sql: Allow onconnect callback to fail connection to the DB by returning false, err

8 years agomod_storage_sql2: Don't upgrade tables without admin intervention
Matthew Wild [Tue, 7 Jul 2015 16:42:29 +0000 (17:42 +0100)]
mod_storage_sql2: Don't upgrade tables without admin intervention

8 years agomod_storage_sql2: Add prosodyctl command to upgrade tables from the command-line
Matthew Wild [Tue, 7 Jul 2015 16:41:09 +0000 (17:41 +0100)]
mod_storage_sql2: Add prosodyctl command to upgrade tables from the command-line

8 years agomod_storage_sql2: Add missing return to upgrade_table(), so we know if an upgrade...
Matthew Wild [Tue, 7 Jul 2015 16:40:23 +0000 (17:40 +0100)]
mod_storage_sql2: Add missing return to upgrade_table(), so we know if an upgrade is required

8 years agomod_storage_sql2: Rename variable to avoid name clash
Matthew Wild [Tue, 7 Jul 2015 16:39:56 +0000 (17:39 +0100)]
mod_storage_sql2: Rename variable to avoid name clash

8 years agonet.dns: Remove resolver:new(), as it needlessly and incorrectly duplicates dns.resol...
Matthew Wild [Mon, 6 Jul 2015 18:11:39 +0000 (19:11 +0100)]
net.dns: Remove resolver:new(), as it needlessly and incorrectly duplicates dns.resolver()

8 years agoMerge with 0.10
Matthew Wild [Mon, 6 Jul 2015 16:07:05 +0000 (17:07 +0100)]
Merge with 0.10

8 years agoprosodyctl: check: Add some more known global config options
Kim Alvefur [Sun, 5 Jul 2015 20:20:29 +0000 (22:20 +0200)]
prosodyctl: check: Add some more known global config options

8 years agoMerge 0.10->trunk
Kim Alvefur [Sun, 5 Jul 2015 16:00:05 +0000 (18:00 +0200)]
Merge 0.10->trunk

9 years agoutil.sql: Call onconnect, provide noop dummy if not set
Kim Alvefur [Thu, 2 Jul 2015 20:32:44 +0000 (22:32 +0200)]
util.sql: Call onconnect, provide noop dummy if not set

9 years agoluacheckrc: Allow plugins to implement functions under module.* (module.load, etc.)
Matthew Wild [Mon, 29 Jun 2015 12:50:31 +0000 (13:50 +0100)]
luacheckrc: Allow plugins to implement functions under module.* (module.load, etc.)

9 years agoRemove sql.lib.lua, not used anymore
Kim Alvefur [Sat, 27 Jun 2015 14:45:31 +0000 (16:45 +0200)]
Remove sql.lib.lua, not used anymore

9 years agomod_storage_sql2: Validate configuration after normalizing SQLite3 database path...
Kim Alvefur [Sat, 27 Jun 2015 13:59:37 +0000 (15:59 +0200)]
mod_storage_sql2: Validate configuration after normalizing SQLite3 database path (fixes traceback with default config)

9 years agoMerge 0.10->trunk
Kim Alvefur [Thu, 25 Jun 2015 16:57:43 +0000 (18:57 +0200)]
Merge 0.10->trunk

9 years agoMerge 0.9->0.10
Kim Alvefur [Thu, 25 Jun 2015 16:54:01 +0000 (18:54 +0200)]
Merge 0.9->0.10

9 years agoMUC: Prevent admins from being given affiliatons other than owner
Kim Alvefur [Thu, 25 Jun 2015 15:58:24 +0000 (17:58 +0200)]
MUC: Prevent admins from being given affiliatons other than owner

9 years agoBacked out changeset bea3862b6bde in favor of a different approach
Kim Alvefur [Thu, 25 Jun 2015 15:54:19 +0000 (17:54 +0200)]
Backed out changeset bea3862b6bde in favor of a different approach

9 years agoMerge with 0.10
Matthew Wild [Wed, 24 Jun 2015 22:25:42 +0000 (23:25 +0100)]
Merge with 0.10

9 years agomod_storage_sql2: Break up monolithic code into functions, theoretically no functiona...
Matthew Wild [Wed, 24 Jun 2015 22:24:32 +0000 (23:24 +0100)]
mod_storage_sql2: Break up monolithic code into functions, theoretically no functionality changes.