prosody.git
12 years agoutil.throttle: Fix 'outstanding' return value
Matthew Wild [Fri, 13 Jan 2012 23:30:32 +0000 (23:30 +0000)]
util.throttle: Fix 'outstanding' return value

12 years agoutil.throttle: Import setmetatable
Matthew Wild [Fri, 13 Jan 2012 23:30:00 +0000 (23:30 +0000)]
util.throttle: Import setmetatable

12 years agonet.server_event: Fix :pause() to actually stop reading from the socket, rather than...
Matthew Wild [Mon, 16 Jan 2012 04:44:23 +0000 (04:44 +0000)]
net.server_event: Fix :pause() to actually stop reading from the socket, rather than ignoring socket-readable events (!), and :resume() to restart the event listener

12 years agoutil.throttle: Fix 'outstanding' return value
Matthew Wild [Fri, 13 Jan 2012 23:30:32 +0000 (23:30 +0000)]
util.throttle: Fix 'outstanding' return value

12 years agoutil.throttle: Import setmetatable
Matthew Wild [Fri, 13 Jan 2012 23:30:00 +0000 (23:30 +0000)]
util.throttle: Import setmetatable

12 years agoutil.debug: Adjust level within get_locals_table() to account for the additional...
Matthew Wild [Fri, 13 Jan 2012 15:46:36 +0000 (15:46 +0000)]
util.debug: Adjust level within get_locals_table() to account for the additional depth of this function itself

12 years agomod_component: removed unused variable reference, added "flagging" to assert if a...
Marco Cirillo [Fri, 6 Jan 2012 21:45:33 +0000 (21:45 +0000)]
mod_component: removed unused variable reference, added "flagging" to assert if a component is connected or not.

12 years agonet.xmppcomponent_listener: removed unused variable reference.
Marco Cirillo [Fri, 6 Jan 2012 21:43:30 +0000 (21:43 +0000)]
net.xmppcomponent_listener: removed unused variable reference.

12 years agoutil.stanza: Remove unused __add metamethod
Matthew Wild [Wed, 21 Dec 2011 07:58:22 +0000 (07:58 +0000)]
util.stanza: Remove unused __add metamethod

12 years agos2smanager: Fix missing import of 'type' (thanks darkrain)
Matthew Wild [Tue, 20 Dec 2011 17:36:38 +0000 (17:36 +0000)]
s2smanager: Fix missing import of 'type' (thanks darkrain)

12 years agohostmanager: Add send() method to hosts
Matthew Wild [Fri, 16 Dec 2011 16:01:59 +0000 (16:01 +0000)]
hostmanager: Add send() method to hosts

12 years agousermanager: Prep admin JIDs (fixes issue#276).
Waqas Hussain [Wed, 14 Dec 2011 02:19:58 +0000 (07:19 +0500)]
usermanager: Prep admin JIDs (fixes issue#276).

12 years agos2smanager: Don't throw an error when the "interface" config option is a string ...
Waqas Hussain [Wed, 14 Dec 2011 01:46:24 +0000 (06:46 +0500)]
s2smanager: Don't throw an error when the "interface" config option is a string (which it is by default).

12 years agomod_bosh: Remove unused reference to lxp
Waqas Hussain [Wed, 14 Dec 2011 01:42:23 +0000 (06:42 +0500)]
mod_bosh: Remove unused reference to lxp

12 years agosessionmanager: Remove unused reference to modulemanager
Matthew Wild [Tue, 13 Dec 2011 15:42:21 +0000 (15:42 +0000)]
sessionmanager: Remove unused reference to modulemanager

12 years agos2smanager: Remove unused reference to modulemanager
Matthew Wild [Tue, 13 Dec 2011 15:40:37 +0000 (15:40 +0000)]
s2smanager: Remove unused reference to modulemanager

12 years agomodulemanager: Remove 'config' from module environments (no modules use it that I...
Matthew Wild [Tue, 13 Dec 2011 13:34:21 +0000 (13:34 +0000)]
modulemanager: Remove 'config' from module environments (no modules use it that I'm aware of)

12 years agomod_watchregistrations: Fixed an undefined global access (thanks Medics).
Waqas Hussain [Mon, 12 Dec 2011 09:53:12 +0000 (14:53 +0500)]
mod_watchregistrations: Fixed an undefined global access (thanks Medics).

12 years agoutil/datamanager: Use package.config to figure out directory seperator
James Callahan [Mon, 12 Dec 2011 06:08:48 +0000 (17:08 +1100)]
util/datamanager: Use package.config to figure out directory seperator

12 years agoconfigure: Add 'openbsd' preset (thanks xavier)
Matthew Wild [Sun, 11 Dec 2011 17:08:34 +0000 (17:08 +0000)]
configure: Add 'openbsd' preset (thanks xavier)

12 years agomod_adhoc: Use module:handle_items()
Matthew Wild [Sat, 10 Dec 2011 05:45:07 +0000 (05:45 +0000)]
mod_adhoc: Use module:handle_items()

12 years agoutil.array: Avoid globals.
Waqas Hussain [Fri, 9 Dec 2011 07:02:21 +0000 (12:02 +0500)]
util.array: Avoid globals.

12 years agoutil.array: Make array:push() chainable.
Waqas Hussain [Fri, 9 Dec 2011 06:57:14 +0000 (11:57 +0500)]
util.array: Make array:push() chainable.

12 years agomod_bosh: Fixed use of a private HTTP request property.
Waqas Hussain [Fri, 9 Dec 2011 06:44:00 +0000 (11:44 +0500)]
mod_bosh: Fixed use of a private HTTP request property.

12 years agonet.httpserver: Removed unused import.
Waqas Hussain [Fri, 9 Dec 2011 06:38:35 +0000 (11:38 +0500)]
net.httpserver: Removed unused import.

12 years agomigrator/jabberd14: Minor refactoring.
Waqas Hussain [Fri, 9 Dec 2011 06:37:30 +0000 (11:37 +0500)]
migrator/jabberd14: Minor refactoring.

12 years agoconfigure: Remove obsolete option '--require-config'
Matthew Wild [Thu, 8 Dec 2011 07:41:28 +0000 (07:41 +0000)]
configure: Remove obsolete option '--require-config'

12 years agos2smanager: Store port specified by SRV records
Florian Zeitz [Wed, 7 Dec 2011 22:37:56 +0000 (23:37 +0100)]
s2smanager: Store port specified by SRV records

12 years agomod_bosh: Experimental option 'bosh_auto_cork' which witholds any response to a reque...
Matthew Wild [Wed, 7 Dec 2011 05:54:17 +0000 (05:54 +0000)]
mod_bosh: Experimental option 'bosh_auto_cork' which witholds any response to a request until all stanzas in it have been processed.

12 years agoutil.iterators: it2table: Fix variable name
Matthew Wild [Wed, 7 Dec 2011 05:17:39 +0000 (05:17 +0000)]
util.iterators: it2table: Fix variable name

12 years agoutil.array: Expand some of the more basic methods to act more sensibly than their...
Matthew Wild [Wed, 7 Dec 2011 05:14:58 +0000 (05:14 +0000)]
util.array: Expand some of the more basic methods to act more sensibly than their names suggested

12 years agoutil.array: Add pluck() method to pick a given property from each item
Matthew Wild [Wed, 7 Dec 2011 05:04:55 +0000 (05:04 +0000)]
util.array: Add pluck() method to pick a given property from each item

12 years agomod_bosh: Move stream:features sending until after the current request has been added...
Matthew Wild [Wed, 7 Dec 2011 04:57:51 +0000 (04:57 +0000)]
mod_bosh: Move stream:features sending until after the current request has been added to session.requests. Ensures correct inactivity logic.

12 years agomod_bosh: Remove a session from inactive_sessions before destroying it
Matthew Wild [Wed, 7 Dec 2011 03:54:28 +0000 (03:54 +0000)]
mod_bosh: Remove a session from inactive_sessions before destroying it

12 years agomod_bosh: Store time to destroy session in inactive_sessions, removing dependency...
Matthew Wild [Wed, 7 Dec 2011 02:58:22 +0000 (02:58 +0000)]
mod_bosh: Store time to destroy session in inactive_sessions, removing dependency on session.bosh_max_inactive in cleanup timer

12 years agoutil.dataforms: Fix verfication for booleans
Florian Zeitz [Sat, 3 Dec 2011 16:10:48 +0000 (17:10 +0100)]
util.dataforms: Fix verfication for booleans

12 years agoutil.dataforms: Fix form verification
Florian Zeitz [Fri, 2 Dec 2011 18:24:54 +0000 (19:24 +0100)]
util.dataforms: Fix form verification

12 years agoutil.ip: Fix syntax error (while I search for my pre-commit hooks)
Matthew Wild [Wed, 30 Nov 2011 19:37:13 +0000 (19:37 +0000)]
util.ip: Fix syntax error (while I search for my pre-commit hooks)

12 years agoutil.ip: Fix in IP range calculation for 172.16.0.0/12
Matthew Wild [Wed, 30 Nov 2011 17:20:16 +0000 (17:20 +0000)]
util.ip: Fix in IP range calculation for 172.16.0.0/12

12 years agos2smanager: Use config over xmppserver's default interface
Matthew Wild [Mon, 28 Nov 2011 14:30:12 +0000 (14:30 +0000)]
s2smanager: Use config over xmppserver's default interface

12 years agonet.xmppserver_listener: Set default interface to '*' (fixes traceback) (thanks Zash)
Matthew Wild [Mon, 28 Nov 2011 14:27:52 +0000 (14:27 +0000)]
net.xmppserver_listener: Set default interface to '*' (fixes traceback) (thanks Zash)

12 years agonet.server_select: Autostart SSL negotiation as the last part of socket setup to...
Matthew Wild [Mon, 28 Nov 2011 03:04:50 +0000 (03:04 +0000)]
net.server_select: Autostart SSL negotiation as the last part of socket setup to avoid a traceback (#262) (thanks Maranda)

12 years agoMerge with Florob
Matthew Wild [Sat, 26 Nov 2011 03:50:51 +0000 (03:50 +0000)]
Merge with Florob

12 years agologgingmanager: Remove unused 'critical' level
Matthew Wild [Tue, 22 Nov 2011 17:56:52 +0000 (17:56 +0000)]
loggingmanager: Remove unused 'critical' level

12 years agoutil.dependencies, util.xmppstream: Move LuaExpat version checking to util.dependencies.
Waqas Hussain [Mon, 21 Nov 2011 21:13:42 +0000 (02:13 +0500)]
util.dependencies, util.xmppstream: Move LuaExpat version checking to util.dependencies.

12 years agoutil.xmppstream: A little cleanup.
Waqas Hussain [Mon, 21 Nov 2011 20:44:28 +0000 (01:44 +0500)]
util.xmppstream: A little cleanup.

12 years agoMUC: Fix a possible stack overflow (when a local component joins a room, then disconn...
Waqas Hussain [Mon, 21 Nov 2011 14:59:38 +0000 (19:59 +0500)]
MUC: Fix a possible stack overflow (when a local component joins a room, then disconnects, an unavailble-error presence cycle can occur).

12 years agoutil.debug: Fix potential traceback
Matthew Wild [Sat, 19 Nov 2011 22:40:30 +0000 (22:40 +0000)]
util.debug: Fix potential traceback

12 years agomigrator/jabberd14: Support for reading jabberd14 spool files.
Waqas Hussain [Sat, 19 Nov 2011 16:12:23 +0000 (21:12 +0500)]
migrator/jabberd14: Support for reading jabberd14 spool files.

12 years agoMerge with Zash
Matthew Wild [Fri, 18 Nov 2011 16:05:40 +0000 (16:05 +0000)]
Merge with Zash

12 years agoutil.pposix: Don't trust errno for success. Thanks Quince
Kim Alvefur [Fri, 18 Nov 2011 05:13:24 +0000 (06:13 +0100)]
util.pposix: Don't trust errno for success. Thanks Quince

12 years agoutil.rfc3484: Use a stable sorting algorithm
Florian Zeitz [Sun, 6 Nov 2011 17:23:16 +0000 (18:23 +0100)]
util.rfc3484: Use a stable sorting algorithm

12 years agomod_proxy65: Major cleanup, better logging, handling of all error cases, less code...
Waqas Hussain [Sat, 5 Nov 2011 19:51:39 +0000 (00:51 +0500)]
mod_proxy65: Major cleanup, better logging, handling of all error cases, less code, and other goodness.

12 years agoutil.timer: Variable name change (func -> callback)
Matthew Wild [Thu, 3 Nov 2011 12:47:52 +0000 (12:47 +0000)]
util.timer: Variable name change (func -> callback)

12 years agoutil.debug: Experimental new library for producing more extensive debug tracebacks
Matthew Wild [Thu, 3 Nov 2011 12:41:21 +0000 (12:41 +0000)]
util.debug: Experimental new library for producing more extensive debug tracebacks

12 years agoMerge with Zash
Matthew Wild [Wed, 2 Nov 2011 07:17:26 +0000 (07:17 +0000)]
Merge with Zash

12 years agoprosody: Ensure prosody.paths.config is never nil (certmanager.create_context fails...
Waqas Hussain [Tue, 1 Nov 2011 19:00:42 +0000 (00:00 +0500)]
prosody: Ensure prosody.paths.config is never nil (certmanager.create_context fails otherwise).

12 years agocertmanager: More informative logging.
Waqas Hussain [Tue, 1 Nov 2011 18:57:42 +0000 (23:57 +0500)]
certmanager: More informative logging.

12 years agoutil.jid: Added escape() and unescape().
Waqas Hussain [Tue, 1 Nov 2011 18:41:32 +0000 (23:41 +0500)]
util.jid: Added escape() and unescape().

12 years agoMerge with Zash
Matthew Wild [Wed, 26 Oct 2011 22:58:01 +0000 (18:58 -0400)]
Merge with Zash

12 years agoutil.json: Fix for single-line comments (thanks Norbert Kiesel)
Matthew Wild [Wed, 26 Oct 2011 22:55:06 +0000 (18:55 -0400)]
util.json: Fix for single-line comments (thanks Norbert Kiesel)

12 years agos2smanager, net.dns: Fix handling for NXNAME and SRV target of "."
Florian Zeitz [Wed, 26 Oct 2011 00:03:33 +0000 (02:03 +0200)]
s2smanager, net.dns: Fix handling for NXNAME and SRV target of "."

12 years agoMakefile: Fix making of prosody.version
Kim Alvefur [Sun, 23 Oct 2011 18:56:33 +0000 (20:56 +0200)]
Makefile: Fix making of prosody.version

12 years agoMakefile: Fix making of prosody.version
Kim Alvefur [Sun, 23 Oct 2011 18:56:33 +0000 (20:56 +0200)]
Makefile: Fix making of prosody.version

12 years agos2smanager, xmppserver_listener: Support for connecting to other servers via IPv6
Florian Zeitz [Sat, 22 Oct 2011 16:29:23 +0000 (18:29 +0200)]
s2smanager, xmppserver_listener: Support for connecting to other servers via IPv6

12 years agoutil.rfc3484: New util implementing RFC3484 sorting
Florian Zeitz [Sat, 22 Oct 2011 15:59:33 +0000 (17:59 +0200)]
util.rfc3484: New util implementing RFC3484 sorting

12 years agoutil.ip: New module containing IP related functions
Florian Zeitz [Sat, 22 Oct 2011 15:51:53 +0000 (17:51 +0200)]
util.ip: New module containing IP related functions

12 years agoMakefile: Merge identical rules and some other improvements.
Kim Alvefur [Mon, 17 Oct 2011 23:22:44 +0000 (01:22 +0200)]
Makefile: Merge identical rules and some other improvements.

12 years agoMakefile: Merge identical rules and some other improvements.
Kim Alvefur [Mon, 17 Oct 2011 23:22:44 +0000 (01:22 +0200)]
Makefile: Merge identical rules and some other improvements.

12 years agoutil.watchdog: Watchdog timer library
Matthew Wild [Fri, 21 Oct 2011 21:12:45 +0000 (17:12 -0400)]
util.watchdog: Watchdog timer library

12 years agonet.dns: Preserve metatable on manual cache purge
Matthew Wild [Wed, 19 Oct 2011 20:21:56 +0000 (16:21 -0400)]
net.dns: Preserve metatable on manual cache purge

12 years agonet.server_event, net.server_select: Fixed some global pollution.
Waqas Hussain [Thu, 13 Oct 2011 19:46:29 +0000 (00:46 +0500)]
net.server_event, net.server_select: Fixed some global pollution.

12 years agomod_register: Add support for additional registration fields
Florian Zeitz [Thu, 11 Aug 2011 22:01:35 +0000 (00:01 +0200)]
mod_register: Add support for additional registration fields

12 years agoutil.dataforms: Add field verification logic
Florian Zeitz [Thu, 11 Aug 2011 21:58:26 +0000 (23:58 +0200)]
util.dataforms: Add field verification logic

12 years agoMakefile, util-src/Makefile: Add .PHONY, reorganise util-src/Makefile
Matthew Wild [Wed, 12 Oct 2011 23:51:50 +0000 (00:51 +0100)]
Makefile, util-src/Makefile: Add .PHONY, reorganise util-src/Makefile

12 years agomod_saslauth: Never send empty <mechanisms/>, for real this time.
Waqas Hussain [Wed, 12 Oct 2011 19:24:09 +0000 (00:24 +0500)]
mod_saslauth: Never send empty <mechanisms/>, for real this time.

12 years agomod_pep: Always include a 'from' attribute on service discovery requests to local...
Waqas Hussain [Wed, 12 Oct 2011 19:13:49 +0000 (00:13 +0500)]
mod_pep: Always include a 'from' attribute on service discovery requests to local clients (compatibility fix for OneTeam).

12 years agonet.server_select: Minor whitespace fix.
Waqas Hussain [Wed, 12 Oct 2011 19:11:17 +0000 (00:11 +0500)]
net.server_select: Minor whitespace fix.

12 years agomod_saslauth: Never send empty <mechanisms/>.
Waqas Hussain [Wed, 12 Oct 2011 19:10:02 +0000 (00:10 +0500)]
mod_saslauth: Never send empty <mechanisms/>.

12 years agomod_watchregistrations: Update to pass default options to module:get_option(), and...
Matthew Wild [Wed, 12 Oct 2011 02:48:48 +0000 (03:48 +0100)]
mod_watchregistrations: Update to pass default options to module:get_option(), and reformat the code a little

12 years agomod_motd: Update to use module:get_option_string
Matthew Wild [Tue, 27 Sep 2011 18:07:41 +0000 (19:07 +0100)]
mod_motd: Update to use module:get_option_string

12 years agomod_motd: Send no message (instead of 'blank') if no message is set in the config...
Matthew Wild [Tue, 27 Sep 2011 18:05:14 +0000 (19:05 +0100)]
mod_motd: Send no message (instead of 'blank') if no message is set in the config (thanks medics)

12 years agonet.server_select: Never call onincoming with nil data when a listener doesn't have...
Matthew Wild [Tue, 27 Sep 2011 16:28:56 +0000 (17:28 +0100)]
net.server_select: Never call onincoming with nil data when a listener doesn't have an onconnect handler

12 years agoutil.array: Fix array.collect() for iterators that expect initial value of var to...
Matthew Wild [Sat, 24 Sep 2011 23:21:22 +0000 (00:21 +0100)]
util.array: Fix array.collect() for iterators that expect initial value of var to be preserved

12 years agoutil.iterators: Add range(from, to)
Matthew Wild [Sat, 24 Sep 2011 23:20:43 +0000 (00:20 +0100)]
util.iterators: Add range(from, to)

12 years agoutil.timer: Fix corner case of timer not repeating if it returns <= 0
Matthew Wild [Thu, 22 Sep 2011 14:48:56 +0000 (15:48 +0100)]
util.timer: Fix corner case of timer not repeating if it returns <= 0

12 years agotools/ejabberdsql2prosody: Track current line for error reporting
Matthew Wild [Tue, 20 Sep 2011 22:30:58 +0000 (23:30 +0100)]
tools/ejabberdsql2prosody: Track current line for error reporting

12 years agomodulemanager: Fix undefined global access in handling of module.save error handling.
Waqas Hussain [Tue, 20 Sep 2011 22:25:34 +0000 (03:25 +0500)]
modulemanager: Fix undefined global access in handling of module.save error handling.

12 years agoprosody: Invalid escape sequence in componentmanager deprecation warning (can cause...
Waqas Hussain [Tue, 20 Sep 2011 22:23:47 +0000 (03:23 +0500)]
prosody: Invalid escape sequence in componentmanager deprecation warning (can cause luajit to throw).

12 years agomodulemanager: Fixed undefined global access in broadcast of item-remove events on...
Waqas Hussain [Sat, 17 Sep 2011 15:28:46 +0000 (20:28 +0500)]
modulemanager: Fixed undefined global access in broadcast of item-remove events on module unload.

12 years agoejabberd2prosody: Added a lot more type checks to ensure XML data has proper data...
Waqas Hussain [Sat, 17 Sep 2011 15:25:11 +0000 (20:25 +0500)]
ejabberd2prosody: Added a lot more type checks to ensure XML data has proper data types. Ignore attributes of invalid types. Fixes the cause of issue#261.

12 years agomod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim)
Matthew Wild [Thu, 15 Sep 2011 16:38:24 +0000 (17:38 +0100)]
mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim)

12 years agonet.httpclient_listener: util.httpstream now always expects to be called with nil...
Matthew Wild [Sat, 3 Sep 2011 19:44:05 +0000 (15:44 -0400)]
net.httpclient_listener: util.httpstream now always expects to be called with nil data, so call even when the socket closed cleanly

12 years agonet.server_event: Don't call listener.onincoming with data=nil when listener.onconnec...
Waqas Hussain [Fri, 2 Sep 2011 21:42:50 +0000 (02:42 +0500)]
net.server_event: Don't call listener.onincoming with data=nil when listener.onconnect is missing. onincoming's arguments shall always be non-nil.

12 years agomod_proxy65: Apply stringprep to activation target JID.
Waqas Hussain [Fri, 2 Sep 2011 20:07:35 +0000 (01:07 +0500)]
mod_proxy65: Apply stringprep to activation target JID.

12 years agomod_proxy65: Some more cleanup.
Waqas Hussain [Fri, 2 Sep 2011 19:37:37 +0000 (00:37 +0500)]
mod_proxy65: Some more cleanup.

12 years agomod_proxy65: Cleanup.
Waqas Hussain [Fri, 2 Sep 2011 18:50:34 +0000 (23:50 +0500)]
mod_proxy65: Cleanup.

12 years agonet.dns: Shorten AAAA records
Kim Alvefur [Fri, 2 Sep 2011 16:54:42 +0000 (18:54 +0200)]
net.dns: Shorten AAAA records

12 years agoMerge with trunk
Matthew Wild [Thu, 1 Sep 2011 00:25:13 +0000 (20:25 -0400)]
Merge with trunk

12 years agonet.httpclient_listener: Define t_insert
Matthew Wild [Thu, 1 Sep 2011 00:23:49 +0000 (20:23 -0400)]
net.httpclient_listener: Define t_insert