prosody.git
13 years agoprosody: Added a stub implementation of core.componentmanager to the package.loaded...
Waqas Hussain [Tue, 7 Dec 2010 17:55:28 +0000 (22:55 +0500)]
prosody: Added a stub implementation of core.componentmanager to the package.loaded table (re-commiting, as this was accidentally removed).

13 years agocerts/openssl.cnf: Change countryName from UK to GB
Matthew Wild [Mon, 6 Dec 2010 18:51:45 +0000 (18:51 +0000)]
certs/openssl.cnf: Change countryName from UK to GB

13 years agocerts/Makefile: Add .PRECIOUS to stop make deleting the key as an intermediate file...
Matthew Wild [Mon, 6 Dec 2010 18:48:23 +0000 (18:48 +0000)]
certs/Makefile: Add .PRECIOUS to stop make deleting the key as an intermediate file (thanks deryni/Zash)

13 years agoMerge with Zash
Matthew Wild [Mon, 6 Dec 2010 17:32:35 +0000 (17:32 +0000)]
Merge with Zash

13 years agomod_pubsub: Ensure <item> is in correct scope when broadcasting an event
Matthew Wild [Sun, 5 Dec 2010 19:54:48 +0000 (19:54 +0000)]
mod_pubsub: Ensure <item> is in correct scope when broadcasting an event

13 years agomod_pubsub: Support item retraction
Florian Zeitz [Sun, 5 Dec 2010 03:19:23 +0000 (04:19 +0100)]
mod_pubsub: Support item retraction

13 years agomod_pubsub, util.pubsub: Support for unsubscribing
Florian Zeitz [Sun, 5 Dec 2010 01:46:08 +0000 (02:46 +0100)]
mod_pubsub, util.pubsub: Support for unsubscribing

13 years agocerts: Add a default OpenSSL configuration file, and a Makefile.
Kim Alvefur [Fri, 3 Dec 2010 15:40:42 +0000 (16:40 +0100)]
certs: Add a default OpenSSL configuration file, and a Makefile.

13 years agomod_pubsub: Use pubsub_error_reply everywhere
Florian Zeitz [Fri, 3 Dec 2010 15:36:13 +0000 (16:36 +0100)]
mod_pubsub: Use pubsub_error_reply everywhere

13 years agoutil.xmppstream: Fix logger name.
Waqas Hussain [Thu, 2 Dec 2010 20:03:52 +0000 (01:03 +0500)]
util.xmppstream: Fix logger name.

13 years agomod_disco: Don't add caps hash to stream features on unauthenticated connections.
Waqas Hussain [Thu, 2 Dec 2010 19:37:54 +0000 (00:37 +0500)]
mod_disco: Don't add caps hash to stream features on unauthenticated connections.

13 years agomod_proxy65: Add service discovery identity and feature, to help out mod_disco when...
Waqas Hussain [Thu, 2 Dec 2010 19:29:44 +0000 (00:29 +0500)]
mod_proxy65: Add service discovery identity and feature, to help out mod_disco when loaded on a normal host.

13 years agomod_proxy65: Cleaned up stanza processing a little.
Waqas Hussain [Thu, 2 Dec 2010 19:22:11 +0000 (00:22 +0500)]
mod_proxy65: Cleaned up stanza processing a little.

13 years agomod_proxy65: s:len() -> #s.
Waqas Hussain [Thu, 2 Dec 2010 19:21:49 +0000 (00:21 +0500)]
mod_proxy65: s:len() -> #s.

13 years agomod_proxy65: Make some globals local.
Waqas Hussain [Thu, 2 Dec 2010 19:13:30 +0000 (00:13 +0500)]
mod_proxy65: Make some globals local.

13 years agomod_proxy65: :sub(n):byte() -> :byte(n).
Waqas Hussain [Thu, 2 Dec 2010 19:12:55 +0000 (00:12 +0500)]
mod_proxy65: :sub(n):byte() -> :byte(n).

13 years agomod_proxy65: Allow loading on normal hosts.
Waqas Hussain [Thu, 2 Dec 2010 19:04:32 +0000 (00:04 +0500)]
mod_proxy65: Allow loading on normal hosts.

13 years agomod_proxy65: Updated to use sub-events. Now only hooks what it needs to.
Waqas Hussain [Thu, 2 Dec 2010 19:02:53 +0000 (00:02 +0500)]
mod_proxy65: Updated to use sub-events. Now only hooks what it needs to.

13 years agonet.server_select: Set select() timeout to 3600 by default.
Waqas Hussain [Thu, 2 Dec 2010 18:07:45 +0000 (23:07 +0500)]
net.server_select: Set select() timeout to 3600 by default.

13 years agonet.server_select: Made another global local.
Waqas Hussain [Thu, 2 Dec 2010 18:06:30 +0000 (23:06 +0500)]
net.server_select: Made another global local.

13 years agonet.server_select: Made some globals local.
Waqas Hussain [Thu, 2 Dec 2010 17:55:42 +0000 (22:55 +0500)]
net.server_select: Made some globals local.

13 years agomod_bosh: Use util.timer for timers instead of server.addtimer.
Waqas Hussain [Thu, 2 Dec 2010 17:47:29 +0000 (22:47 +0500)]
mod_bosh: Use util.timer for timers instead of server.addtimer.

13 years agoutil.timer: Activate higher timer precision.
Waqas Hussain [Thu, 2 Dec 2010 17:41:26 +0000 (22:41 +0500)]
util.timer: Activate higher timer precision.

13 years agonet.server_select: Make changes required for sub-second timer precision.
Waqas Hussain [Thu, 2 Dec 2010 17:40:42 +0000 (22:40 +0500)]
net.server_select: Make changes required for sub-second timer precision.

13 years agofallbacks/lxp.lua: CRLF -> LF.
Waqas Hussain [Thu, 2 Dec 2010 12:15:26 +0000 (17:15 +0500)]
fallbacks/lxp.lua: CRLF -> LF.

13 years agofallbacks/lxp.lua: Pure Lua pseudo-XML parser. Implements the same API as LuaExpat.
Waqas Hussain [Thu, 2 Dec 2010 12:11:51 +0000 (17:11 +0500)]
fallbacks/lxp.lua: Pure Lua pseudo-XML parser. Implements the same API as LuaExpat.

13 years agomod_iq: Fix an extra character in previous commit...
Waqas Hussain [Thu, 2 Dec 2010 11:58:24 +0000 (16:58 +0500)]
mod_iq: Fix an extra character in previous commit...

13 years agomod_iq: Don't hook 'iq/full' on components.
Waqas Hussain [Thu, 2 Dec 2010 11:56:30 +0000 (16:56 +0500)]
mod_iq: Don't hook 'iq/full' on components.

13 years agomodulemanager: Allow components to inherit mod_iq. This allows modules loaded on...
Waqas Hussain [Thu, 2 Dec 2010 11:32:42 +0000 (16:32 +0500)]
modulemanager: Allow components to inherit mod_iq. This allows modules loaded on components to hook IQ stanza sub-events ("iq-set/bare/xmlns:tag", etc).

13 years agomod_proxy65: Give the 'iq/host' stanza handler a negative priority, to allow mod_iq...
Waqas Hussain [Thu, 2 Dec 2010 11:17:44 +0000 (16:17 +0500)]
mod_proxy65: Give the 'iq/host' stanza handler a negative priority, to allow mod_iq to process the events first.

13 years agoMUC: Give stanza handlers a negative priority, to allow mod_iq to process them first.
Waqas Hussain [Thu, 2 Dec 2010 11:16:44 +0000 (16:16 +0500)]
MUC: Give stanza handlers a negative priority, to allow mod_iq to process them first.

13 years agomod_component: Give stanza handlers a negative priority, to allow mod_iq to process...
Waqas Hussain [Thu, 2 Dec 2010 11:15:50 +0000 (16:15 +0500)]
mod_component: Give stanza handlers a negative priority, to allow mod_iq to process them first.

13 years agomod_iq: Don't stop event dispatch for unhandled IQ errors and results (this lets...
Waqas Hussain [Thu, 2 Dec 2010 11:04:42 +0000 (16:04 +0500)]
mod_iq: Don't stop event dispatch for unhandled IQ errors and results (this lets negative priority handlers intercept the events).

13 years agomod_pubsub, util.pubsub: Support node creation
Florian Zeitz [Wed, 1 Dec 2010 22:38:47 +0000 (23:38 +0100)]
mod_pubsub, util.pubsub: Support node creation

13 years agomod_console: Fix to import cert_verify_identity (util.certverification)
Matthew Wild [Sun, 28 Nov 2010 21:19:18 +0000 (21:19 +0000)]
mod_console: Fix to import cert_verify_identity (util.certverification)

13 years agocertmanager: Add required verify flags for cert verification if LuaSec (probably...
Matthew Wild [Sun, 28 Nov 2010 21:09:55 +0000 (21:09 +0000)]
certmanager: Add required verify flags for cert verification if LuaSec (probably) supports them

13 years agomod_console: Add s2s:showcert() command to show the certificate for a domain
Matthew Wild [Sun, 28 Nov 2010 21:03:33 +0000 (21:03 +0000)]
mod_console: Add s2s:showcert() command to show the certificate for a domain

13 years agomod_pep: Remove PEP subscriptions on getting a presence unsubscribe.
Waqas Hussain [Sun, 28 Nov 2010 10:02:56 +0000 (15:02 +0500)]
mod_pep: Remove PEP subscriptions on getting a presence unsubscribe.

13 years agomod_pep: Fixed regression where PEP messages were not correctly being broadcasted...
Waqas Hussain [Sun, 28 Nov 2010 08:11:42 +0000 (13:11 +0500)]
mod_pep: Fixed regression where PEP messages were not correctly being broadcasted on caps hash change.

13 years agomod_pep: Fixed a nil access (thanks Zash).
Waqas Hussain [Sun, 28 Nov 2010 07:58:54 +0000 (12:58 +0500)]
mod_pep: Fixed a nil access (thanks Zash).

13 years agomod_disco: Fixed: Service discovery features were not being removed on module unload...
Waqas Hussain [Sun, 28 Nov 2010 02:56:08 +0000 (07:56 +0500)]
mod_disco: Fixed: Service discovery features were not being removed on module unload (issue #205).

13 years agomod_pep: Optimised PEP requests for disco info on caps change (issue #150).
Waqas Hussain [Sun, 28 Nov 2010 02:43:19 +0000 (07:43 +0500)]
mod_pep: Optimised PEP requests for disco info on caps change (issue #150).

13 years agos2smanager: Check for getpeercertificate availability (for old LuaSecs)
Matthew Wild [Sat, 27 Nov 2010 22:07:44 +0000 (22:07 +0000)]
s2smanager: Check for getpeercertificate availability (for old LuaSecs)

13 years agostoragemanager: Only show fallback warning if storage was configured to use another...
Matthew Wild [Sat, 27 Nov 2010 22:02:30 +0000 (22:02 +0000)]
storagemanager: Only show fallback warning if storage was configured to use another backend and it failed

13 years agostoragemanager: Return driver from load_driver() if successful
Matthew Wild [Sat, 27 Nov 2010 21:57:20 +0000 (21:57 +0000)]
storagemanager: Return driver from load_driver() if successful

13 years agoMerge with trunk
Matthew Wild [Sat, 27 Nov 2010 21:53:10 +0000 (21:53 +0000)]
Merge with trunk

13 years agostoragemanager: Import type()
Matthew Wild [Sat, 27 Nov 2010 21:52:30 +0000 (21:52 +0000)]
storagemanager: Import type()

13 years agomod_iq: Optimized a bit more (fewer table accesses).
Waqas Hussain [Sat, 27 Nov 2010 21:42:02 +0000 (02:42 +0500)]
mod_iq: Optimized a bit more (fewer table accesses).

13 years agomod_iq: Optimized a bit (fewer table accesses).
Waqas Hussain [Sat, 27 Nov 2010 21:37:18 +0000 (02:37 +0500)]
mod_iq: Optimized a bit (fewer table accesses).

13 years agomod_iq: Extra IQ get and set sub-events are now fired: "iq-{get,set}/{host,self,bare...
Waqas Hussain [Sat, 27 Nov 2010 21:24:26 +0000 (02:24 +0500)]
mod_iq: Extra IQ get and set sub-events are now fired: "iq-{get,set}/{host,self,bare}/xmlns:tag" (when "iq/{host,self,bare}/xmlns:tag" is unhandled).

13 years agostoragemanager: Import util.multitable again
Matthew Wild [Sat, 27 Nov 2010 21:16:32 +0000 (21:16 +0000)]
storagemanager: Import util.multitable again

13 years agostoragemanager: Fix syntax error
Matthew Wild [Sat, 27 Nov 2010 21:15:23 +0000 (21:15 +0000)]
storagemanager: Fix syntax error

13 years agoMerge darkrain->trunk
Matthew Wild [Sat, 27 Nov 2010 21:12:44 +0000 (21:12 +0000)]
Merge darkrain->trunk

13 years agomod_pep: Updated disco#info result handler to use new event name format.
Waqas Hussain [Sat, 27 Nov 2010 21:05:52 +0000 (02:05 +0500)]
mod_pep: Updated disco#info result handler to use new event name format.

13 years agomod_iq: IQ error and result sub-events are now "iq-{error,result}/{host,self,bare...
Waqas Hussain [Sat, 27 Nov 2010 21:03:59 +0000 (02:03 +0500)]
mod_iq: IQ error and result sub-events are now "iq-{error,result}/{host,self,bare}/id" (previously "iq/{host,self,bare}/id").

13 years agoRename storage/mod_ejabberd to mod_storage_sql_ejabberd. Also rename configuration...
Matthew Wild [Sat, 27 Nov 2010 19:49:29 +0000 (19:49 +0000)]
Rename storage/mod_ejabberd to mod_storage_sql_ejabberd. Also rename configuration option. Untested.

13 years agostorage/mod_storage: Remove, obsolete
Matthew Wild [Sat, 27 Nov 2010 19:47:35 +0000 (19:47 +0000)]
storage/mod_storage: Remove, obsolete

13 years agostoragemanager: Much refactoring and renaming of options. Untested, needs storage...
Matthew Wild [Sat, 27 Nov 2010 19:46:07 +0000 (19:46 +0000)]
storagemanager: Much refactoring and renaming of options. Untested, needs storage plugin(s) to be brought into line.

13 years agoutil.datetime: Fix so that the timestamp returned is always in UTC, timezone offsets...
Matthew Wild [Sat, 27 Nov 2010 01:30:56 +0000 (01:30 +0000)]
util.datetime: Fix so that the timestamp returned is always in UTC, timezone offsets were going in the wrong direction

13 years agoutil.datetime: Fixes for more liberal timezone parsing - colon and minutes are both...
Matthew Wild [Sat, 27 Nov 2010 01:22:43 +0000 (01:22 +0000)]
util.datetime: Fixes for more liberal timezone parsing - colon and minutes are both (independantly) optional (thanks Zash)

13 years agomod_pubsub, util.pubsub: Support for fetching items
Florian Zeitz [Thu, 25 Nov 2010 20:47:12 +0000 (21:47 +0100)]
mod_pubsub, util.pubsub: Support for fetching items

13 years agoutil.template: Don't add stanza.last_add. 20% faster.
Waqas Hussain [Fri, 26 Nov 2010 00:26:12 +0000 (05:26 +0500)]
util.template: Don't add stanza.last_add. 20% faster.

13 years agotests/test_util_stanza.lua: Allow stanza.last_add to be nil.
Waqas Hussain [Fri, 26 Nov 2010 00:24:59 +0000 (05:24 +0500)]
tests/test_util_stanza.lua: Allow stanza.last_add to be nil.

13 years agoutil.stanza, util.xmppstream, core.xmlhandlers: Allow stanza.last_add to be nil,...
Waqas Hussain [Fri, 26 Nov 2010 00:23:37 +0000 (05:23 +0500)]
util.stanza, util.xmppstream, core.xmlhandlers: Allow stanza.last_add to be nil, and set it nil by default. Saves a table allocation per-element. 20% faster stanza building.

13 years agoutil.template: Rewritten to be much faster than the util.stanza stanza building API.
Waqas Hussain [Thu, 25 Nov 2010 03:38:26 +0000 (08:38 +0500)]
util.template: Rewritten to be much faster than the util.stanza stanza building API.

13 years agomod_console: Denote services whose identity matches their (valid/trusted) certificate...
Paul Aurich [Mon, 22 Nov 2010 05:10:46 +0000 (21:10 -0800)]
mod_console: Denote services whose identity matches their (valid/trusted) certificate as 'secure'

13 years agos2s: SASL EXTERNAL
Paul Aurich [Mon, 22 Nov 2010 05:10:43 +0000 (21:10 -0800)]
s2s: SASL EXTERNAL

13 years agos2smanager: Compatibility hack for when not using dialback
Paul Aurich [Mon, 22 Nov 2010 05:02:31 +0000 (21:02 -0800)]
s2smanager: Compatibility hack for when not using dialback

13 years agonet.server_event: API parity with net.server_socket
Paul Aurich [Mon, 22 Nov 2010 05:02:31 +0000 (21:02 -0800)]
net.server_event: API parity with net.server_socket

13 years ago.hgignore: Ignore *.diff.
Waqas Hussain [Sat, 20 Nov 2010 16:59:31 +0000 (21:59 +0500)]
.hgignore: Ignore *.diff.

13 years ago.hgignore: Ignore Windows compilation artifacts.
Waqas Hussain [Sat, 20 Nov 2010 16:57:56 +0000 (21:57 +0500)]
.hgignore: Ignore Windows compilation artifacts.

13 years agonet.xmpp{client,server,component}_listener: s/xml-not-well-formed/not-well-formed...
Waqas Hussain [Fri, 19 Nov 2010 21:33:36 +0000 (02:33 +0500)]
net.xmpp{client,server,component}_listener: s/xml-not-well-formed/not-well-formed/ as per latest bis drafts.

13 years agoutil.xmppstream: Preserve the stream content namespace on descendents of elements...
Waqas Hussain [Fri, 19 Nov 2010 21:28:40 +0000 (02:28 +0500)]
util.xmppstream: Preserve the stream content namespace on descendents of elements which are in another namespace.

13 years agoMUC: Include the user's current presence contents when broadcasting a role change.
Waqas Hussain [Thu, 18 Nov 2010 22:20:29 +0000 (03:20 +0500)]
MUC: Include the user's current presence contents when broadcasting a role change.

13 years agoMUC: Include the user's current presence contents when broadcasting an affiliation...
Waqas Hussain [Thu, 18 Nov 2010 22:06:51 +0000 (03:06 +0500)]
MUC: Include the user's current presence contents when broadcasting an affiliation change.

13 years agoprosodyctl: Give hosts type = 'local'
Matthew Wild [Thu, 18 Nov 2010 14:33:03 +0000 (14:33 +0000)]
prosodyctl: Give hosts type = 'local'

13 years agoMUC: Change room name and description properly
Kim Alvefur [Wed, 17 Nov 2010 14:58:32 +0000 (15:58 +0100)]
MUC: Change room name and description properly

13 years agoMUC: Fixed: Variable referencing the host session wasn't initialized.
Waqas Hussain [Tue, 16 Nov 2010 19:18:31 +0000 (00:18 +0500)]
MUC: Fixed: Variable referencing the host session wasn't initialized.

13 years agoprosodyctl, util.prosodyctl: Show error when mod_posix is not enabled and an attempt...
Matthew Wild [Tue, 16 Nov 2010 13:30:27 +0000 (13:30 +0000)]
prosodyctl, util.prosodyctl: Show error when mod_posix is not enabled and an attempt is made to query Prosody's status (thanks stever)

13 years agoutil.pubsub: Add :get_subscription() to return the current subscription for a JID...
Matthew Wild [Sat, 13 Nov 2010 23:10:50 +0000 (23:10 +0000)]
util.pubsub: Add :get_subscription() to return the current subscription for a JID, if any

13 years agoutil.filters: Support for 'filter hooks' that get called when a session is initialize...
Matthew Wild [Sat, 13 Nov 2010 23:10:13 +0000 (23:10 +0000)]
util.filters: Support for 'filter hooks' that get called when a session is initialized for filters

13 years agoMerge backout
Matthew Wild [Sat, 13 Nov 2010 04:12:49 +0000 (04:12 +0000)]
Merge backout

13 years agoBacked out changeset bfc47564aaef (No need for _M with module.environment)
Matthew Wild [Sat, 13 Nov 2010 04:12:40 +0000 (04:12 +0000)]
Backed out changeset bfc47564aaef (No need for _M with module.environment)

13 years agomod_pubsub: Use module.environment to reference the module's environment
Matthew Wild [Sat, 13 Nov 2010 04:12:03 +0000 (04:12 +0000)]
mod_pubsub: Use module.environment to reference the module's environment

13 years agomod_pubsub: Expose 'service'
Matthew Wild [Sat, 13 Nov 2010 04:10:05 +0000 (04:10 +0000)]
mod_pubsub: Expose 'service'

13 years agomodulemanager: Inside plugins, have global _M as a reference to the module's environment
Matthew Wild [Sat, 13 Nov 2010 04:09:14 +0000 (04:09 +0000)]
modulemanager: Inside plugins, have global _M as a reference to the module's environment

13 years agomod_pubsub: It's aliiiive!
Matthew Wild [Sat, 13 Nov 2010 03:16:58 +0000 (03:16 +0000)]
mod_pubsub: It's aliiiive!

13 years agomod_component: Logging tweaks.
Waqas Hussain [Fri, 12 Nov 2010 18:43:30 +0000 (23:43 +0500)]
mod_component: Logging tweaks.

13 years agomod_component: Use module:get_option() instead of configmanager.
Waqas Hussain [Fri, 12 Nov 2010 18:35:02 +0000 (23:35 +0500)]
mod_component: Use module:get_option() instead of configmanager.

13 years agomod_component: Rearranged the code a little.
Waqas Hussain [Fri, 12 Nov 2010 18:32:51 +0000 (23:32 +0500)]
mod_component: Rearranged the code a little.

13 years agomod_component: Return true from stanza handler to indicate that we actually did handl...
Waqas Hussain [Fri, 12 Nov 2010 17:39:37 +0000 (22:39 +0500)]
mod_component: Return true from stanza handler to indicate that we actually did handle the stanza.

13 years agomod_console: Don't allow bang bang as the first command in a session, or when the...
Matthew Wild [Fri, 12 Nov 2010 11:51:50 +0000 (11:51 +0000)]
mod_console: Don't allow bang bang as the first command in a session, or when the last command is unknown (fixes #218)

13 years agoconfigmanager: Change parser API again to pass a config table to insert settings...
Matthew Wild [Thu, 11 Nov 2010 12:23:51 +0000 (12:23 +0000)]
configmanager: Change parser API again to pass a config table to insert settings to. Fixes Include(). (Thanks Zash/answerman)

13 years agousermanager: Don't load auth modules for components.
Waqas Hussain [Thu, 11 Nov 2010 03:36:31 +0000 (08:36 +0500)]
usermanager: Don't load auth modules for components.

13 years agoMUC: Grant membership when inviteing someone into a members-only room.
Kim Alvefur [Wed, 10 Nov 2010 23:55:33 +0000 (00:55 +0100)]
MUC: Grant membership when inviteing someone into a members-only room.

13 years agoconfigmanager: Update Include and RunScript directives to support paths relative...
Matthew Wild [Wed, 10 Nov 2010 19:50:07 +0000 (19:50 +0000)]
configmanager: Update Include and RunScript directives to support paths relative to the (current!) config file

13 years agoprosody, configmanager, certmanager: Relocate prosody.resolve_relative_path() to...
Matthew Wild [Wed, 10 Nov 2010 19:46:53 +0000 (19:46 +0000)]
prosody, configmanager, certmanager: Relocate prosody.resolve_relative_path() to configmanager, and update certmanager (the only user of this function)

13 years agomodulemanager, usermanager: Removed hooks for the 'component-activated' event (compon...
Waqas Hussain [Wed, 10 Nov 2010 17:27:09 +0000 (22:27 +0500)]
modulemanager, usermanager: Removed hooks for the 'component-activated' event (components now fire 'host-activated').

13 years agomod_proxy65: Use module:get_option() instead of configmanager.
Waqas Hussain [Wed, 10 Nov 2010 17:02:28 +0000 (22:02 +0500)]
mod_proxy65: Use module:get_option() instead of configmanager.

13 years agocomponentmanager: Removed.
Waqas Hussain [Wed, 10 Nov 2010 16:48:28 +0000 (21:48 +0500)]
componentmanager: Removed.