Waqas Hussain [Thu, 9 Dec 2010 17:17:28 +0000 (22:17 +0500)]
mod_console: Removed redundant code for host:activate() and host:deactivate(), now that hostmanager has error checking.
Waqas Hussain [Thu, 9 Dec 2010 16:40:54 +0000 (21:40 +0500)]
hostmanager: Improved error handling.
Waqas Hussain [Thu, 9 Dec 2010 16:12:39 +0000 (21:12 +0500)]
hostmanager: deactivate() now returns true on success.
Waqas Hussain [Thu, 9 Dec 2010 16:11:12 +0000 (21:11 +0500)]
hostmanager: activate() now gets the host config from configmanager when a config isn't given.
Matthew Wild [Wed, 8 Dec 2010 17:01:23 +0000 (17:01 +0000)]
certs/Makefile: Remove -c flag to chmod, which appears to be a GNUism (thanks Kev)
Waqas Hussain [Tue, 7 Dec 2010 21:29:37 +0000 (02:29 +0500)]
prosody: Don't attempt to load core.xmlhandlers in the main file. It no longer exists.
Matthew Wild [Tue, 7 Dec 2010 19:27:58 +0000 (19:27 +0000)]
xmlhandlers: DELETED.
Matthew Wild [Tue, 7 Dec 2010 19:26:38 +0000 (19:26 +0000)]
util.prosodyctl: Prep JIDs before checking whether they exist (thanks tja)
Matthew Wild [Tue, 7 Dec 2010 19:22:08 +0000 (19:22 +0000)]
tools/xep227toprosody.lua: Rename ns_xep227 to xmlns_xep227 for consistency with main Prosody code
Matthew Wild [Tue, 7 Dec 2010 19:20:33 +0000 (19:20 +0000)]
tools/xep227toprosody.lua: Convert to use util.xmppstream
Matthew Wild [Tue, 7 Dec 2010 19:19:05 +0000 (19:19 +0000)]
util.xmppstream: Expose ns_separator and ns_pattern
Matthew Wild [Tue, 7 Dec 2010 18:38:22 +0000 (18:38 +0000)]
mod_bosh: Switch to util.xmppstream from xmlhandlers
Matthew Wild [Tue, 7 Dec 2010 18:18:11 +0000 (18:18 +0000)]
xmppcomponent_listener: Switch to util.xmppstream from xmlhandlers
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).
Matthew Wild [Mon, 6 Dec 2010 18:51:45 +0000 (18:51 +0000)]
certs/openssl.cnf: Change countryName from UK to GB
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)
Matthew Wild [Mon, 6 Dec 2010 17:32:35 +0000 (17:32 +0000)]
Merge with Zash
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
Florian Zeitz [Sun, 5 Dec 2010 03:19:23 +0000 (04:19 +0100)]
mod_pubsub: Support item retraction
Florian Zeitz [Sun, 5 Dec 2010 01:46:08 +0000 (02:46 +0100)]
mod_pubsub, util.pubsub: Support for unsubscribing
Kim Alvefur [Fri, 3 Dec 2010 15:40:42 +0000 (16:40 +0100)]
certs: Add a default OpenSSL configuration file, and a Makefile.
Florian Zeitz [Fri, 3 Dec 2010 15:36:13 +0000 (16:36 +0100)]
mod_pubsub: Use pubsub_error_reply everywhere
Waqas Hussain [Thu, 2 Dec 2010 20:03:52 +0000 (01:03 +0500)]
util.xmppstream: Fix logger name.
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.
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.
Waqas Hussain [Thu, 2 Dec 2010 19:22:11 +0000 (00:22 +0500)]
mod_proxy65: Cleaned up stanza processing a little.
Waqas Hussain [Thu, 2 Dec 2010 19:21:49 +0000 (00:21 +0500)]
mod_proxy65: s:len() -> #s.
Waqas Hussain [Thu, 2 Dec 2010 19:13:30 +0000 (00:13 +0500)]
mod_proxy65: Make some globals local.
Waqas Hussain [Thu, 2 Dec 2010 19:12:55 +0000 (00:12 +0500)]
mod_proxy65: :sub(n):byte() -> :byte(n).
Waqas Hussain [Thu, 2 Dec 2010 19:04:32 +0000 (00:04 +0500)]
mod_proxy65: Allow loading on normal hosts.
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.
Waqas Hussain [Thu, 2 Dec 2010 18:07:45 +0000 (23:07 +0500)]
net.server_select: Set select() timeout to 3600 by default.
Waqas Hussain [Thu, 2 Dec 2010 18:06:30 +0000 (23:06 +0500)]
net.server_select: Made another global local.
Waqas Hussain [Thu, 2 Dec 2010 17:55:42 +0000 (22:55 +0500)]
net.server_select: Made some globals local.
Waqas Hussain [Thu, 2 Dec 2010 17:47:29 +0000 (22:47 +0500)]
mod_bosh: Use util.timer for timers instead of server.addtimer.
Waqas Hussain [Thu, 2 Dec 2010 17:41:26 +0000 (22:41 +0500)]
util.timer: Activate higher 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.
Waqas Hussain [Thu, 2 Dec 2010 12:15:26 +0000 (17:15 +0500)]
fallbacks/lxp.lua: CRLF -> LF.
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.
Waqas Hussain [Thu, 2 Dec 2010 11:58:24 +0000 (16:58 +0500)]
mod_iq: Fix an extra character in previous commit...
Waqas Hussain [Thu, 2 Dec 2010 11:56:30 +0000 (16:56 +0500)]
mod_iq: Don't hook 'iq/full' on components.
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).
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.
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.
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.
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).
Florian Zeitz [Wed, 1 Dec 2010 22:38:47 +0000 (23:38 +0100)]
mod_pubsub, util.pubsub: Support node creation
Matthew Wild [Sun, 28 Nov 2010 21:19:18 +0000 (21:19 +0000)]
mod_console: Fix to import cert_verify_identity (util.certverification)
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
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
Waqas Hussain [Sun, 28 Nov 2010 10:02:56 +0000 (15:02 +0500)]
mod_pep: Remove PEP subscriptions on getting a presence unsubscribe.
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.
Waqas Hussain [Sun, 28 Nov 2010 07:58:54 +0000 (12:58 +0500)]
mod_pep: Fixed a nil access (thanks Zash).
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).
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).
Matthew Wild [Sat, 27 Nov 2010 22:07:44 +0000 (22:07 +0000)]
s2smanager: Check for getpeercertificate availability (for old LuaSecs)
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
Matthew Wild [Sat, 27 Nov 2010 21:57:20 +0000 (21:57 +0000)]
storagemanager: Return driver from load_driver() if successful
Matthew Wild [Sat, 27 Nov 2010 21:53:10 +0000 (21:53 +0000)]
Merge with trunk
Matthew Wild [Sat, 27 Nov 2010 21:52:30 +0000 (21:52 +0000)]
storagemanager: Import type()
Waqas Hussain [Sat, 27 Nov 2010 21:42:02 +0000 (02:42 +0500)]
mod_iq: Optimized a bit more (fewer table accesses).
Waqas Hussain [Sat, 27 Nov 2010 21:37:18 +0000 (02:37 +0500)]
mod_iq: Optimized a bit (fewer table accesses).
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).
Matthew Wild [Sat, 27 Nov 2010 21:16:32 +0000 (21:16 +0000)]
storagemanager: Import util.multitable again
Matthew Wild [Sat, 27 Nov 2010 21:15:23 +0000 (21:15 +0000)]
storagemanager: Fix syntax error
Matthew Wild [Sat, 27 Nov 2010 21:12:44 +0000 (21:12 +0000)]
Merge darkrain->trunk
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.
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").
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.
Matthew Wild [Sat, 27 Nov 2010 19:47:35 +0000 (19:47 +0000)]
storage/mod_storage: Remove, obsolete
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.
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
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)
Florian Zeitz [Thu, 25 Nov 2010 20:47:12 +0000 (21:47 +0100)]
mod_pubsub, util.pubsub: Support for fetching items
Waqas Hussain [Fri, 26 Nov 2010 00:26:12 +0000 (05:26 +0500)]
util.template: Don't add stanza.last_add. 20% faster.
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.
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.
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.
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'
Paul Aurich [Mon, 22 Nov 2010 05:10:43 +0000 (21:10 -0800)]
s2s: SASL EXTERNAL
Paul Aurich [Mon, 22 Nov 2010 05:02:31 +0000 (21:02 -0800)]
s2smanager: Compatibility hack for when not using dialback
Paul Aurich [Mon, 22 Nov 2010 05:02:31 +0000 (21:02 -0800)]
net.server_event: API parity with net.server_socket
Waqas Hussain [Sat, 20 Nov 2010 16:59:31 +0000 (21:59 +0500)]
.hgignore: Ignore *.diff.
Waqas Hussain [Sat, 20 Nov 2010 16:57:56 +0000 (21:57 +0500)]
.hgignore: Ignore Windows compilation artifacts.
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.
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.
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.
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.
Matthew Wild [Thu, 18 Nov 2010 14:33:03 +0000 (14:33 +0000)]
prosodyctl: Give hosts type = 'local'
Kim Alvefur [Wed, 17 Nov 2010 14:58:32 +0000 (15:58 +0100)]
MUC: Change room name and description properly
Waqas Hussain [Tue, 16 Nov 2010 19:18:31 +0000 (00:18 +0500)]
MUC: Fixed: Variable referencing the host session wasn't initialized.
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)
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
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
Matthew Wild [Sat, 13 Nov 2010 04:12:49 +0000 (04:12 +0000)]
Merge backout
Matthew Wild [Sat, 13 Nov 2010 04:12:40 +0000 (04:12 +0000)]
Backed out changeset
bfc47564aaef (No need for _M with module.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
Matthew Wild [Sat, 13 Nov 2010 04:10:05 +0000 (04:10 +0000)]
mod_pubsub: Expose 'service'
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
Matthew Wild [Sat, 13 Nov 2010 03:16:58 +0000 (03:16 +0000)]
mod_pubsub: It's aliiiive!