prosody.git
13 years agonet.adns: Handle dns.query() failures, and pass error to handler
Matthew Wild [Fri, 24 Dec 2010 04:52:40 +0000 (04:52 +0000)]
net.adns: Handle dns.query() failures, and pass error to handler

13 years agonet.dns: resolver:query(): Handle getsocket() failures, and return true on success
Matthew Wild [Fri, 24 Dec 2010 04:52:13 +0000 (04:52 +0000)]
net.dns: resolver:query(): Handle getsocket() failures, and return true on success

13 years agonet.dns: resolver:getsocket(): Return nil, err on failure
Matthew Wild [Fri, 24 Dec 2010 04:51:34 +0000 (04:51 +0000)]
net.dns: resolver:getsocket(): Return nil, err on failure

13 years agos2smanager: Give all new outgoing s2s sessions a close method by default (destroy_ses...
Matthew Wild [Fri, 24 Dec 2010 04:49:30 +0000 (04:49 +0000)]
s2smanager: Give all new outgoing s2s sessions a close method by default (destroy_session)

13 years agos2smanager: Add a missing semi-colon
Matthew Wild [Fri, 24 Dec 2010 04:48:38 +0000 (04:48 +0000)]
s2smanager: Add a missing semi-colon

13 years agos2smanager: destroy_session(): Pass reason to retire_session() and return true on...
Matthew Wild [Fri, 24 Dec 2010 04:48:18 +0000 (04:48 +0000)]
s2smanager: destroy_session(): Pass reason to retire_session() and return true on successful destruction

13 years agos2smanager: retire_session(): Add a 'reason' parameter
Matthew Wild [Fri, 24 Dec 2010 04:47:18 +0000 (04:47 +0000)]
s2smanager: retire_session(): Add a 'reason' parameter

13 years agomod_pubsub: Include node in disco#items reply
Matthew Wild [Wed, 22 Dec 2010 23:30:47 +0000 (23:30 +0000)]
mod_pubsub: Include node in disco#items reply

13 years agos2smanager: session.send(): Return the result of send_to_host() (and incidentally...
Matthew Wild [Wed, 22 Dec 2010 20:39:30 +0000 (20:39 +0000)]
s2smanager: session.send(): Return the result of send_to_host() (and incidentally make this a tail call \o/)

13 years agos2smanager: send_to_host(): Return false on failure, and true otherwise
Matthew Wild [Wed, 22 Dec 2010 20:38:40 +0000 (20:38 +0000)]
s2smanager: send_to_host(): Return false on failure, and true otherwise

13 years agomod_pubsub: Fix missing disco#items xmlns
Kim Alvefur [Wed, 22 Dec 2010 16:23:55 +0000 (17:23 +0100)]
mod_pubsub: Fix missing disco#items xmlns

13 years agoutil.pubsub: Return correct node in get_subscriptions()
Kim Alvefur [Wed, 22 Dec 2010 16:42:35 +0000 (17:42 +0100)]
util.pubsub: Return correct node in get_subscriptions()

13 years agomod_pubsub: Implement disco#info for nodes
Matthew Wild [Wed, 22 Dec 2010 16:53:38 +0000 (16:53 +0000)]
mod_pubsub: Implement disco#info for nodes

13 years agoutil.filters: Add remove_filter_hook()
Matthew Wild [Wed, 22 Dec 2010 16:46:19 +0000 (16:46 +0000)]
util.filters: Add remove_filter_hook()

13 years agoutil.pubsub: Use correct node name when returning a list of multiple nodes in a subsc...
Matthew Wild [Wed, 22 Dec 2010 16:45:32 +0000 (16:45 +0000)]
util.pubsub: Use correct node name when returning a list of multiple nodes in a subscriptions response

13 years agomod_pubsub: Implement get_subscriptions
Matthew Wild [Wed, 22 Dec 2010 03:49:52 +0000 (03:49 +0000)]
mod_pubsub: Implement get_subscriptions

13 years agomod_pubsub: Add get_subscriptions and get_subscriptions_other capabilities to default...
Matthew Wild [Wed, 22 Dec 2010 03:49:23 +0000 (03:49 +0000)]
mod_pubsub: Add get_subscriptions and get_subscriptions_other capabilities to default affiliations

13 years agomod_pubsub: Add add_subscription and get_subscriptions to feature_map
Matthew Wild [Wed, 22 Dec 2010 03:48:51 +0000 (03:48 +0000)]
mod_pubsub: Add add_subscription and get_subscriptions to feature_map

13 years agoutil.pubsub: Add service-wide subscription tracking, and add :get_subscriptions()
Matthew Wild [Wed, 22 Dec 2010 03:46:32 +0000 (03:46 +0000)]
util.pubsub: Add service-wide subscription tracking, and add :get_subscriptions()

13 years agoutil.pubsub: Small code tidying for :get_subscription()
Matthew Wild [Wed, 22 Dec 2010 03:46:07 +0000 (03:46 +0000)]
util.pubsub: Small code tidying for :get_subscription()

13 years agoutil.pubsub: Fix traceback when using autocreate-on-subscribe
Matthew Wild [Wed, 22 Dec 2010 03:44:51 +0000 (03:44 +0000)]
util.pubsub: Fix traceback when using autocreate-on-subscribe

13 years agomod_pubsub: Set normalize_jid instead of jids_equal
Matthew Wild [Wed, 22 Dec 2010 03:04:44 +0000 (03:04 +0000)]
mod_pubsub: Set normalize_jid instead of jids_equal

13 years agoutil.pubsub: Add service:jids_equal() and new config option normalize_jid
Matthew Wild [Wed, 22 Dec 2010 03:04:14 +0000 (03:04 +0000)]
util.pubsub: Add service:jids_equal() and new config option normalize_jid

13 years agomod_pubsub: Fix a missing :up() from the last commit
Matthew Wild [Wed, 22 Dec 2010 02:19:14 +0000 (02:19 +0000)]
mod_pubsub: Fix a missing :up() from the last commit

13 years agomod_pubsub: Handle disco#items on nodes
Matthew Wild [Wed, 22 Dec 2010 02:17:45 +0000 (02:17 +0000)]
mod_pubsub: Handle disco#items on nodes

13 years agoutil.pubsub: get_items(): When requesting a specific item, use the id as a key to...
Matthew Wild [Wed, 22 Dec 2010 02:13:26 +0000 (02:13 +0000)]
util.pubsub: get_items(): When requesting a specific item, use the id as a key to mirror the multiple-item case

13 years agoprosody: Catch a recursive Include error and print a more friendly error
Matthew Wild [Tue, 21 Dec 2010 22:26:22 +0000 (22:26 +0000)]
prosody: Catch a recursive Include error and print a more friendly error

13 years agoconfigmanager: Filenames without a path are also relative to the config file path...
Matthew Wild [Tue, 21 Dec 2010 22:25:54 +0000 (22:25 +0000)]
configmanager: Filenames without a path are also relative to the config file path, not the current working directory

13 years agoutil.pubsub: Add service:set_node_capabilities()
Matthew Wild [Tue, 21 Dec 2010 15:26:37 +0000 (15:26 +0000)]
util.pubsub: Add service:set_node_capabilities()

13 years agoutil.xmppstream: Allow stream_ns = "" for parsing streams with no xmlns
Matthew Wild [Tue, 21 Dec 2010 14:44:13 +0000 (14:44 +0000)]
util.xmppstream: Allow stream_ns = "" for parsing streams with no xmlns

13 years agoMerge with 0.8
Matthew Wild [Tue, 21 Dec 2010 05:05:20 +0000 (05:05 +0000)]
Merge with 0.8

13 years agomod_pubsub: Use bare JID in get_affiliation
Matthew Wild [Tue, 21 Dec 2010 04:36:34 +0000 (04:36 +0000)]
mod_pubsub: Use bare JID in get_affiliation

13 years agomod_pubsub: Skip false features in feature_map
Matthew Wild [Tue, 21 Dec 2010 04:18:58 +0000 (04:18 +0000)]
mod_pubsub: Skip false features in feature_map

13 years agoutil.pubsub: Fix nil global access in get_nodes()
Matthew Wild [Tue, 21 Dec 2010 04:17:24 +0000 (04:17 +0000)]
util.pubsub: Fix nil global access in get_nodes()

13 years agomod_pubsub: Return disco#info stanza from build_disco_info()
Matthew Wild [Tue, 21 Dec 2010 04:15:54 +0000 (04:15 +0000)]
mod_pubsub: Return disco#info stanza from build_disco_info()

13 years agomod_pubsub: Iterate over disco features in correct table
Matthew Wild [Tue, 21 Dec 2010 04:15:29 +0000 (04:15 +0000)]
mod_pubsub: Iterate over disco features in correct table

13 years agomod_pubsub: Build disco#info based on the methods provided by the pubsub service...
Matthew Wild [Tue, 21 Dec 2010 04:06:36 +0000 (04:06 +0000)]
mod_pubsub: Build disco#info based on the methods provided by the pubsub service object. Add public set_service() method to change the service object used by the module.

13 years agomod_pubsub: Fix capabilities table from some debugging
Matthew Wild [Tue, 21 Dec 2010 03:30:18 +0000 (03:30 +0000)]
mod_pubsub: Fix capabilities table from some debugging

13 years agomod_pubsub: Make the pubsub host an admin too
Matthew Wild [Tue, 21 Dec 2010 03:29:29 +0000 (03:29 +0000)]
mod_pubsub: Make the pubsub host an admin too

13 years agomod_pubsub: Update for latest util.pubsub and fix some bugs. New config options autoc...
Matthew Wild [Tue, 21 Dec 2010 03:27:22 +0000 (03:27 +0000)]
mod_pubsub: Update for latest util.pubsub and fix some bugs. New config options autocreate_on_publish, autocreate_on_subscribe and default_admin_affiliation.

13 years agoutil.pubsub: Too many changes to list or split sensibly. Added access control to...
Matthew Wild [Tue, 21 Dec 2010 03:26:06 +0000 (03:26 +0000)]
util.pubsub: Too many changes to list or split sensibly. Added access control to all methods, with capabilities support. Renamed get() -> get_items() and changed it to return true, result on success. Support for autocreate_on_subscribe and autocreate_on_publish config options.

13 years agoutil.pubsub: Modify new() to take a config, and add a default config via a metatable
Matthew Wild [Tue, 21 Dec 2010 03:22:40 +0000 (03:22 +0000)]
util.pubsub: Modify new() to take a config, and add a default config via a metatable

13 years agomod_pubsub: Add 'forbidden' error support
Matthew Wild [Tue, 21 Dec 2010 03:18:17 +0000 (03:18 +0000)]
mod_pubsub: Add 'forbidden' error support

13 years agoprosody.cfg.lua.dist: Add note about external gateways
Matthew Wild [Tue, 21 Dec 2010 01:47:49 +0000 (01:47 +0000)]
prosody.cfg.lua.dist: Add note about external gateways

13 years agoprosody.cfg.lua.dist: Add note about external gateways
Matthew Wild [Tue, 21 Dec 2010 01:47:49 +0000 (01:47 +0000)]
prosody.cfg.lua.dist: Add note about external gateways

13 years agoprosody.cfg.lua.dist: Update for new logging config format
Matthew Wild [Tue, 21 Dec 2010 01:30:27 +0000 (01:30 +0000)]
prosody.cfg.lua.dist: Update for new logging config format

13 years agoprosody.cfg.lua.dist: Update for new logging config format
Matthew Wild [Tue, 21 Dec 2010 01:30:27 +0000 (01:30 +0000)]
prosody.cfg.lua.dist: Update for new logging config format

13 years agoconfigmanager: Support for wildcards in Include directives
Matthew Wild [Mon, 20 Dec 2010 14:06:32 +0000 (14:06 +0000)]
configmanager: Support for wildcards in Include directives

13 years agoconfigmanager: Support for wildcards in Include directives
Matthew Wild [Mon, 20 Dec 2010 14:06:32 +0000 (14:06 +0000)]
configmanager: Support for wildcards in Include directives

13 years agoprosody, prosodyctl, util.dependencies: Split checking and logging of dependencies...
Matthew Wild [Mon, 20 Dec 2010 14:06:16 +0000 (14:06 +0000)]
prosody, prosodyctl, util.dependencies: Split checking and logging of dependencies so we can check hard deps before the config and logging is loaded

13 years agoprosody, prosodyctl, util.dependencies: Split checking and logging of dependencies...
Matthew Wild [Mon, 20 Dec 2010 14:06:16 +0000 (14:06 +0000)]
prosody, prosodyctl, util.dependencies: Split checking and logging of dependencies so we can check hard deps before the config and logging is loaded

13 years agoutil.httpstream: For HTTP client responses, changing properties responseversion and...
Waqas Hussain [Sun, 19 Dec 2010 15:28:58 +0000 (20:28 +0500)]
util.httpstream: For HTTP client responses, changing properties responseversion and responseheaders to httpversion and httpheaders, to match HTTP server requests.

13 years agoutil.httpstream: For HTTP client responses, changing properties responseversion and...
Waqas Hussain [Sun, 19 Dec 2010 15:28:58 +0000 (20:28 +0500)]
util.httpstream: For HTTP client responses, changing properties responseversion and responseheaders to httpversion and httpheaders, to match HTTP server requests.

13 years agoutil.httpstream: A little cleanup of the HTTP path.
Waqas Hussain [Sun, 19 Dec 2010 15:27:13 +0000 (20:27 +0500)]
util.httpstream: A little cleanup of the HTTP path.

13 years agoutil.httpstream: A little cleanup of the HTTP path.
Waqas Hussain [Sun, 19 Dec 2010 15:27:13 +0000 (20:27 +0500)]
util.httpstream: A little cleanup of the HTTP path.

13 years agoMerge with 0.8
Matthew Wild [Sun, 19 Dec 2010 03:04:42 +0000 (03:04 +0000)]
Merge with 0.8

13 years agomod_pubsub, util.pubsub: Remove from 0.8
Matthew Wild [Sun, 19 Dec 2010 02:57:58 +0000 (02:57 +0000)]
mod_pubsub, util.pubsub: Remove from 0.8

13 years agoMerge 0.8->trunk (uh-oh)
Matthew Wild [Sun, 19 Dec 2010 02:36:56 +0000 (02:36 +0000)]
Merge 0.8->trunk (uh-oh)

13 years agoconfigmanager: Switch back to returning 'ok' to signal config load success - fixes...
Matthew Wild [Sat, 18 Dec 2010 23:15:58 +0000 (23:15 +0000)]
configmanager: Switch back to returning 'ok' to signal config load success - fixes config errors not being displayed

13 years agoconfigmanager: Switch back to returning 'ok' to signal config load success - fixes...
Matthew Wild [Sat, 18 Dec 2010 23:15:58 +0000 (23:15 +0000)]
configmanager: Switch back to returning 'ok' to signal config load success - fixes config errors not being displayed

13 years agoMerge with Florob
Matthew Wild [Sat, 18 Dec 2010 23:08:21 +0000 (23:08 +0000)]
Merge with Florob

13 years agomod_admin_adhoc: Support unloading multiple modules
Florian Zeitz [Sat, 18 Dec 2010 20:35:42 +0000 (21:35 +0100)]
mod_admin_adhoc: Support unloading multiple modules

13 years agomod_admin_adhoc: Support for reloading multiple modules
Florian Zeitz [Sat, 18 Dec 2010 20:04:45 +0000 (21:04 +0100)]
mod_admin_adhoc: Support for reloading multiple modules

13 years agoutil.events: Remove an event's table when it has no more handlers.
Waqas Hussain [Sat, 18 Dec 2010 19:53:19 +0000 (00:53 +0500)]
util.events: Remove an event's table when it has no more handlers.

13 years agomod_admin_adhoc: Support unloading multiple modules
Florian Zeitz [Sat, 18 Dec 2010 20:35:42 +0000 (21:35 +0100)]
mod_admin_adhoc: Support unloading multiple modules

13 years agomod_admin_adhoc: Support for reloading multiple modules
Florian Zeitz [Sat, 18 Dec 2010 20:04:45 +0000 (21:04 +0100)]
mod_admin_adhoc: Support for reloading multiple modules

13 years agoutil.events: Remove an event's table when it has no more handlers.
Waqas Hussain [Sat, 18 Dec 2010 19:53:19 +0000 (00:53 +0500)]
util.events: Remove an event's table when it has no more handlers.

13 years agonet/server_select.lua: Reduce select() timeout back to 1s
Matthew Wild [Sat, 18 Dec 2010 14:46:28 +0000 (14:46 +0000)]
net/server_select.lua: Reduce select() timeout back to 1s

13 years agonet/server_select.lua: Reduce select() timeout back to 1s
Matthew Wild [Sat, 18 Dec 2010 14:46:28 +0000 (14:46 +0000)]
net/server_select.lua: Reduce select() timeout back to 1s

13 years agostoragemanager: Don't always show fallback warning when using per-store config
Matthew Wild [Sat, 18 Dec 2010 14:44:45 +0000 (14:44 +0000)]
storagemanager: Don't always show fallback warning when using per-store config

13 years agostoragemanager: Don't always show fallback warning when using per-store config
Matthew Wild [Sat, 18 Dec 2010 14:44:45 +0000 (14:44 +0000)]
storagemanager: Don't always show fallback warning when using per-store config

13 years agoprosodyctl: Add dummy lock/unlock_globals() until util.startup comes along
Matthew Wild [Sat, 18 Dec 2010 04:02:28 +0000 (04:02 +0000)]
prosodyctl: Add dummy lock/unlock_globals() until util.startup comes along

13 years agoprosodyctl: Add dummy lock/unlock_globals() until util.startup comes along
Matthew Wild [Sat, 18 Dec 2010 04:02:28 +0000 (04:02 +0000)]
prosodyctl: Add dummy lock/unlock_globals() until util.startup comes along

13 years agomod_storage_sql: Fix a couple of bugs in "JSON" decoding
Matthew Wild [Sat, 18 Dec 2010 03:25:31 +0000 (03:25 +0000)]
mod_storage_sql: Fix a couple of bugs in "JSON" decoding

13 years agomod_storage_sql: Fix a couple of bugs in "JSON" decoding
Matthew Wild [Sat, 18 Dec 2010 03:25:31 +0000 (03:25 +0000)]
mod_storage_sql: Fix a couple of bugs in "JSON" decoding

13 years agoutil.prosodyctl: Initialize storagemanager on hosts we modify
Matthew Wild [Sat, 18 Dec 2010 02:33:47 +0000 (02:33 +0000)]
util.prosodyctl: Initialize storagemanager on hosts we modify

13 years agoutil.prosodyctl: Initialize storagemanager on hosts we modify
Matthew Wild [Sat, 18 Dec 2010 02:33:47 +0000 (02:33 +0000)]
util.prosodyctl: Initialize storagemanager on hosts we modify

13 years agostoragemanager: Log warning when loading the storage provider plugin fails
Matthew Wild [Sat, 18 Dec 2010 02:29:33 +0000 (02:29 +0000)]
storagemanager: Log warning when loading the storage provider plugin fails

13 years agostoragemanager: Log warning when loading the storage provider plugin fails
Matthew Wild [Sat, 18 Dec 2010 02:29:33 +0000 (02:29 +0000)]
storagemanager: Log warning when loading the storage provider plugin fails

13 years agoutil-src/Makefile, util-src/encodings.c{,pp}: Port ICU code to C, rename encodings...
Matthew Wild [Fri, 17 Dec 2010 22:32:21 +0000 (22:32 +0000)]
util-src/Makefile, util-src/encodings.c{,pp}: Port ICU code to C, rename encodings.cpp back to .c and amend the Makefile accordingly

13 years agoutil-src/Makefile, util-src/encodings.c{,pp}: Port ICU code to C, rename encodings...
Matthew Wild [Fri, 17 Dec 2010 22:32:21 +0000 (22:32 +0000)]
util-src/Makefile, util-src/encodings.c{,pp}: Port ICU code to C, rename encodings.cpp back to .c and amend the Makefile accordingly

13 years agousermanager: Fixed a possible traceback when is_admin() was used on a component.
Waqas Hussain [Fri, 17 Dec 2010 17:54:34 +0000 (22:54 +0500)]
usermanager: Fixed a possible traceback when is_admin() was used on a component.

13 years agousermanager: Fixed a possible traceback when is_admin() was used on a component.
Waqas Hussain [Fri, 17 Dec 2010 17:54:34 +0000 (22:54 +0500)]
usermanager: Fixed a possible traceback when is_admin() was used on a component.

13 years agoprosody.cfg.lua.dist: Update to reflect new mod_admin_* modules
Matthew Wild [Fri, 17 Dec 2010 17:11:04 +0000 (17:11 +0000)]
prosody.cfg.lua.dist: Update to reflect new mod_admin_* modules

13 years agoprosody.cfg.lua.dist: Update to reflect new mod_admin_* modules
Matthew Wild [Fri, 17 Dec 2010 17:11:04 +0000 (17:11 +0000)]
prosody.cfg.lua.dist: Update to reflect new mod_admin_* modules

13 years agoutil.stanza: Iterate on childtags instead of all childs.
Kim Alvefur [Fri, 17 Dec 2010 16:28:05 +0000 (17:28 +0100)]
util.stanza: Iterate on childtags instead of all childs.

13 years agoutil.stanza: Iterate on childtags instead of all childs.
Kim Alvefur [Fri, 17 Dec 2010 16:28:05 +0000 (17:28 +0100)]
util.stanza: Iterate on childtags instead of all childs.

13 years agoMerge Tobias->trunk
Matthew Wild [Fri, 17 Dec 2010 13:50:33 +0000 (13:50 +0000)]
Merge Tobias->trunk

13 years agomod_pubsub: Preserve service object on module reload
Matthew Wild [Fri, 17 Dec 2010 13:35:21 +0000 (13:35 +0000)]
mod_pubsub: Preserve service object on module reload

13 years agomod_pubsub: Handle disco#info and disco#items
Matthew Wild [Fri, 17 Dec 2010 13:23:29 +0000 (13:23 +0000)]
mod_pubsub: Handle disco#info and disco#items

13 years agoutil.pubsub: Add service:get_nodes()
Matthew Wild [Fri, 17 Dec 2010 13:23:01 +0000 (13:23 +0000)]
util.pubsub: Add service:get_nodes()

13 years agomodulemanager, mod_console: Rename mod_console -> mod_admin_telnet - add compatibilit...
Matthew Wild [Fri, 17 Dec 2010 12:44:24 +0000 (12:44 +0000)]
modulemanager, mod_console: Rename mod_console -> mod_admin_telnet - add compatibility code to modulemanager for existing configs

13 years agonet.httpserver: Default 'ports' = {5280}
Matthew Wild [Fri, 17 Dec 2010 01:24:59 +0000 (01:24 +0000)]
net.httpserver: Default 'ports' = {5280}

13 years agonet.xmppclient_listener: Imports and global cleanup.
Waqas Hussain [Tue, 14 Dec 2010 23:05:49 +0000 (04:05 +0500)]
net.xmppclient_listener: Imports and global cleanup.

13 years agonet.xmppserver_listener: Removed unnecessary import of lxp.
Waqas Hussain [Tue, 14 Dec 2010 22:59:48 +0000 (03:59 +0500)]
net.xmppserver_listener: Removed unnecessary import of lxp.

13 years agonet.xmppserver_listener: Removed unused variables and imports.
Waqas Hussain [Tue, 14 Dec 2010 22:53:44 +0000 (03:53 +0500)]
net.xmppserver_listener: Removed unused variables and imports.

13 years agonet.xmppserver_listener: Made some globals local.
Waqas Hussain [Tue, 14 Dec 2010 22:52:56 +0000 (03:52 +0500)]
net.xmppserver_listener: Made some globals local.

13 years agonet.xmppcomponent_listener: Move session creation from listener.onincoming to listene...
Waqas Hussain [Tue, 14 Dec 2010 22:33:00 +0000 (03:33 +0500)]
net.xmppcomponent_listener: Move session creation from listener.onincoming to listener.onconnect.

13 years agonet.xmppcomponent_listener: Made some globals local.
Waqas Hussain [Tue, 14 Dec 2010 22:14:15 +0000 (03:14 +0500)]
net.xmppcomponent_listener: Made some globals local.

13 years agocore.loggingmanager: Updated to use termcolours.getstyle instead of termcolours.getst...
Waqas Hussain [Tue, 14 Dec 2010 20:57:10 +0000 (01:57 +0500)]
core.loggingmanager: Updated to use termcolours.getstyle instead of termcolours.getstring for console logging.