prosody.git
14 years agoMerged branches
Dwayne Bent [Thu, 2 Jul 2009 19:23:09 +0000 (15:23 -0400)]
Merged branches

14 years agoAdded man page for prosodyctl
Dwayne Bent [Thu, 2 Jul 2009 19:20:15 +0000 (15:20 -0400)]
Added man page for prosodyctl

14 years agomod_presence: Removed dead code
Waqas Hussain [Thu, 2 Jul 2009 18:46:27 +0000 (23:46 +0500)]
mod_presence: Removed dead code

14 years agodatamanager: Fixed incorrect callback result checking
Waqas Hussain [Thu, 2 Jul 2009 16:34:45 +0000 (21:34 +0500)]
datamanager: Fixed incorrect callback result checking

14 years agomod_pep: Escape + in pattern
Matthew Wild [Thu, 2 Jul 2009 14:43:27 +0000 (15:43 +0100)]
mod_pep: Escape + in pattern

14 years agoprosodyctl: Add message for not-running error
Matthew Wild [Thu, 2 Jul 2009 03:54:46 +0000 (04:54 +0100)]
prosodyctl: Add message for not-running error

14 years agoprosodyctl: Use prosodyctl_timeout option if it exists in the config
Matthew Wild [Thu, 2 Jul 2009 03:53:31 +0000 (04:53 +0100)]
prosodyctl: Use prosodyctl_timeout option if it exists in the config

14 years agoprosodyctl: Improve usability with status messages, and waiting up to 5s for the...
Matthew Wild [Thu, 2 Jul 2009 03:43:08 +0000 (04:43 +0100)]
prosodyctl: Improve usability with status messages, and waiting up to 5s for the server to start/stop

14 years agomod_pep: Pass origin/session to publish_all()
Matthew Wild [Thu, 2 Jul 2009 03:11:51 +0000 (04:11 +0100)]
mod_pep: Pass origin/session to publish_all()

14 years agoAdded HMAC utility module
Dwayne Bent [Thu, 2 Jul 2009 00:24:47 +0000 (20:24 -0400)]
Added HMAC utility module

Produces HMAC codes using all the supported hashes (md5, sha1, sha256)

14 years agoprosody: Add fallbacks/ to path
Matthew Wild [Thu, 2 Jul 2009 00:09:20 +0000 (01:09 +0100)]
prosody: Add fallbacks/ to path

14 years agoMakefile: Install fallbacks/ directory
Matthew Wild [Wed, 1 Jul 2009 23:25:14 +0000 (00:25 +0100)]
Makefile: Install fallbacks/ directory

14 years agomod_offline: Initial commit
Waqas Hussain [Wed, 1 Jul 2009 19:48:18 +0000 (00:48 +0500)]
mod_offline: Initial commit

14 years agoMerged with trunk
Waqas Hussain [Wed, 1 Jul 2009 19:47:21 +0000 (00:47 +0500)]
Merged with trunk

14 years agomod_pep: Fixed boolean indexing error while casting all messages for a user
Waqas Hussain [Wed, 1 Jul 2009 19:43:32 +0000 (00:43 +0500)]
mod_pep: Fixed boolean indexing error while casting all messages for a user

14 years agoSend xml:lang in stream headers, fixes #78
Matthew Wild [Wed, 1 Jul 2009 16:53:18 +0000 (17:53 +0100)]
Send xml:lang in stream headers, fixes #78

14 years agoMaking sure the node is in unicode when passing it to password lookup function.
Tobias Markmann [Wed, 1 Jul 2009 13:14:44 +0000 (15:14 +0200)]
Making sure the node is in unicode when passing it to password lookup function.

14 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Mon, 29 Jun 2009 13:13:49 +0000 (14:13 +0100)]
Automated merge with http://waqas.ath.cx:8000/

14 years agoMerge with nolan
Matthew Wild [Mon, 29 Jun 2009 13:10:11 +0000 (14:10 +0100)]
Merge with nolan

14 years agomodulemanager: Don't close stream on stream:error with unsupported-stanza-type (fixes...
Waqas Hussain [Mon, 29 Jun 2009 10:26:04 +0000 (15:26 +0500)]
modulemanager: Don't close stream on stream:error with unsupported-stanza-type (fixes #102)

14 years agoprosody.cfg.lua.dist: Removed 'presence' from default modules list
Waqas Hussain [Mon, 29 Jun 2009 10:20:26 +0000 (15:20 +0500)]
prosody.cfg.lua.dist: Removed 'presence' from default modules list

14 years agostanza_router: Removed unnecessary xmlns check
Waqas Hussain [Mon, 29 Jun 2009 08:15:46 +0000 (13:15 +0500)]
stanza_router: Removed unnecessary xmlns check

14 years agostanza_router: Don't fire preprocessing events if stanza is not from full JID
Waqas Hussain [Mon, 29 Jun 2009 08:15:09 +0000 (13:15 +0500)]
stanza_router: Don't fire preprocessing events if stanza is not from full JID

14 years agoutil.pluginloader: Append "@" to chunk names (fixes weird formatting in plugin traceb...
Waqas Hussain [Sun, 28 Jun 2009 17:29:17 +0000 (22:29 +0500)]
util.pluginloader: Append "@" to chunk names (fixes weird formatting in plugin tracebacks)

14 years agomod_pep: Fixed a nil access error
Waqas Hussain [Sun, 28 Jun 2009 17:23:06 +0000 (22:23 +0500)]
mod_pep: Fixed a nil access error

14 years agomod_pep: Use cached caps
Waqas Hussain [Sun, 28 Jun 2009 16:49:31 +0000 (21:49 +0500)]
mod_pep: Use cached caps

14 years agoSerialize unknown stanza before logging.
nolan@nolan-eee [Sun, 28 Jun 2009 16:49:25 +0000 (11:49 -0500)]
Serialize unknown stanza before logging.

14 years agoMerged with trunk
Waqas Hussain [Sun, 28 Jun 2009 16:32:19 +0000 (21:32 +0500)]
Merged with trunk

14 years agomod_pep: Entity capabilities
Waqas Hussain [Sun, 28 Jun 2009 16:29:39 +0000 (21:29 +0500)]
mod_pep: Entity capabilities

14 years agoMerge with nolan
Matthew Wild [Sun, 28 Jun 2009 13:17:22 +0000 (14:17 +0100)]
Merge with nolan

14 years agonet.httpserver: Don't upset logger when response is nil
Matthew Wild [Sun, 28 Jun 2009 13:17:07 +0000 (14:17 +0100)]
net.httpserver: Don't upset logger when response is nil

14 years agoLog stanza if stanza.to isn't set for some component errors.
nolan@nolan-eee [Sun, 28 Jun 2009 13:09:57 +0000 (08:09 -0500)]
Log stanza if stanza.to isn't set for some component errors.

14 years agomod_console: Reload/unload a module on a component host if it is loaded there
Matthew Wild [Sun, 28 Jun 2009 01:46:36 +0000 (02:46 +0100)]
mod_console: Reload/unload a module on a component host if it is loaded there

14 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Sat, 27 Jun 2009 03:44:27 +0000 (04:44 +0100)]
Automated merge with http://waqas.ath.cx:8000/

14 years agoutil.stanza: Serializer optimizations, and nicer output for empty elements
Waqas Hussain [Sat, 27 Jun 2009 03:38:52 +0000 (08:38 +0500)]
util.stanza: Serializer optimizations, and nicer output for empty elements

14 years agomod_pep: Broadcast only to available recipients with caps
Waqas Hussain [Fri, 26 Jun 2009 18:58:52 +0000 (23:58 +0500)]
mod_pep: Broadcast only to available recipients with caps

14 years agomod_pep: Ignore presence subscriptions when extractng hash information
Waqas Hussain [Fri, 26 Jun 2009 18:42:59 +0000 (23:42 +0500)]
mod_pep: Ignore presence subscriptions when extractng hash information

14 years agomod_pep: Added function get_caps_hash_from_presence
Waqas Hussain [Fri, 26 Jun 2009 18:36:12 +0000 (23:36 +0500)]
mod_pep: Added function get_caps_hash_from_presence

14 years agoutil.muc: Fixed duplicate parameter names in function room:set_subject
Waqas Hussain [Fri, 26 Jun 2009 16:51:32 +0000 (21:51 +0500)]
util.muc: Fixed duplicate parameter names in function room:set_subject

14 years agoutil.muc: Fixed incorrect parameters for a function call
Waqas Hussain [Fri, 26 Jun 2009 16:50:27 +0000 (21:50 +0500)]
util.muc: Fixed incorrect parameters for a function call

14 years agomod_message: Advertise offline message support as per XEP-0160 (thanks nolan)
Matthew Wild [Fri, 26 Jun 2009 14:35:20 +0000 (15:35 +0100)]
mod_message: Advertise offline message support as per XEP-0160 (thanks nolan)

14 years agomod_pep: Removed some YODO comments
Waqas Hussain [Fri, 26 Jun 2009 13:46:52 +0000 (18:46 +0500)]
mod_pep: Removed some YODO comments

14 years agomod_pep: Added handler for disco responses
Waqas Hussain [Fri, 26 Jun 2009 13:45:54 +0000 (18:45 +0500)]
mod_pep: Added handler for disco responses

14 years agoxmppclient_listener: Pass session close reason to destroy_session (to be used in...
Matthew Wild [Fri, 26 Jun 2009 05:32:45 +0000 (06:32 +0100)]
xmppclient_listener: Pass session close reason to destroy_session (to be used in unavailable presence)

14 years agomod_iq: Change sub-event names for IQ errors and results to use stanza IDs
Waqas Hussain [Fri, 26 Jun 2009 05:02:46 +0000 (10:02 +0500)]
mod_iq: Change sub-event names for IQ errors and results to use stanza IDs

14 years agoutil.stanza: Add stanza:get_text() to retrieve all child text nodes #api
Matthew Wild [Fri, 26 Jun 2009 04:54:55 +0000 (05:54 +0100)]
util.stanza: Add stanza:get_text() to retrieve all child text nodes #api

14 years agostanza_router: Fire events also for stanzas to components
Matthew Wild [Fri, 26 Jun 2009 04:54:03 +0000 (05:54 +0100)]
stanza_router: Fire events also for stanzas to components

14 years agomod_message, mod_presence: Maintain list of top resources. Less work in routing messa...
Waqas Hussain [Fri, 26 Jun 2009 03:54:22 +0000 (08:54 +0500)]
mod_message, mod_presence: Maintain list of top resources. Less work in routing messages to bare JIDs. - #optimization

14 years agoutil.events: Replaced ipairs with slightly faster numeric for loop - #optimization
Waqas Hussain [Fri, 26 Jun 2009 03:52:26 +0000 (08:52 +0500)]
util.events: Replaced ipairs with slightly faster numeric for loop - #optimization

14 years agoutil.stanza: Rewrote stanza_mt.__tostring. 20-30% faster stanza serialization. -...
Waqas Hussain [Thu, 25 Jun 2009 12:22:53 +0000 (17:22 +0500)]
util.stanza: Rewrote stanza_mt.__tostring. 20-30% faster stanza serialization. - #optimization

14 years agoutil.stanza: Remove numeric attributes while deserializing
Waqas Hussain [Thu, 25 Jun 2009 12:19:13 +0000 (17:19 +0500)]
util.stanza: Remove numeric attributes while deserializing

14 years agoxmlhandlers: Remove numeric attributes
Waqas Hussain [Thu, 25 Jun 2009 05:04:22 +0000 (10:04 +0500)]
xmlhandlers: Remove numeric attributes

14 years agostanza_router: Remove unused variables and code
Waqas Hussain [Thu, 25 Jun 2009 03:20:38 +0000 (08:20 +0500)]
stanza_router: Remove unused variables and code

14 years agostanza_router: A little refactoring
Waqas Hussain [Thu, 25 Jun 2009 03:17:02 +0000 (08:17 +0500)]
stanza_router: A little refactoring

14 years agostanza_router: Remove unused variables
Waqas Hussain [Thu, 25 Jun 2009 03:15:42 +0000 (08:15 +0500)]
stanza_router: Remove unused variables

14 years agostanza_router: Remove even more old routing code
Waqas Hussain [Thu, 25 Jun 2009 03:13:21 +0000 (08:13 +0500)]
stanza_router: Remove even more old routing code

14 years agostanza_router: Remove some more old routing code
Waqas Hussain [Thu, 25 Jun 2009 03:11:05 +0000 (08:11 +0500)]
stanza_router: Remove some more old routing code

14 years agostanza_router: Call core_post_stanza from core_route_stanza in place of old routing...
Waqas Hussain [Thu, 25 Jun 2009 03:04:10 +0000 (08:04 +0500)]
stanza_router: Call core_post_stanza from core_route_stanza in place of old routing code

14 years agostanza_router: Removed unused function: select_best_resources
Waqas Hussain [Thu, 25 Jun 2009 02:59:04 +0000 (07:59 +0500)]
stanza_router: Removed unused function: select_best_resources

14 years agostanza_router: Removed old routing code
Waqas Hussain [Thu, 25 Jun 2009 02:57:57 +0000 (07:57 +0500)]
stanza_router: Removed old routing code

14 years agomod_component: Rewrite jabber:client stanzas to jabber:component:accept, thanks JaredH!
Matthew Wild [Thu, 25 Jun 2009 00:38:53 +0000 (01:38 +0100)]
mod_component: Rewrite jabber:client stanzas to jabber:component:accept, thanks JaredH!

14 years agomod_pep: Use new style events
Waqas Hussain [Wed, 24 Jun 2009 15:09:44 +0000 (20:09 +0500)]
mod_pep: Use new style events

14 years agomod_iq: Fire sub-events for IQ results and errors
Waqas Hussain [Wed, 24 Jun 2009 15:05:17 +0000 (20:05 +0500)]
mod_iq: Fire sub-events for IQ results and errors

14 years agomod_pep: Broadcast from the user's bare JID, not full JID
Waqas Hussain [Wed, 24 Jun 2009 14:40:12 +0000 (19:40 +0500)]
mod_pep: Broadcast from the user's bare JID, not full JID

14 years agomod_pep: Remove data when a user disables a node
Waqas Hussain [Wed, 24 Jun 2009 14:38:28 +0000 (19:38 +0500)]
mod_pep: Remove data when a user disables a node

14 years agomod_pep: Added some comments
Waqas Hussain [Wed, 24 Jun 2009 14:28:48 +0000 (19:28 +0500)]
mod_pep: Added some comments

14 years agomod_pep: Fixed detection of contact presence changes
Waqas Hussain [Wed, 24 Jun 2009 14:24:02 +0000 (19:24 +0500)]
mod_pep: Fixed detection of contact presence changes

14 years agomod_muc: Now based on util.muc
Waqas Hussain [Tue, 23 Jun 2009 20:37:03 +0000 (01:37 +0500)]
mod_muc: Now based on util.muc

14 years agomod_announce: Work with non-local admins
Waqas Hussain [Tue, 23 Jun 2009 18:59:21 +0000 (23:59 +0500)]
mod_announce: Work with non-local admins

14 years agomod_announce: Use usermanager.is_admin to verify admin status
Waqas Hussain [Tue, 23 Jun 2009 18:55:56 +0000 (23:55 +0500)]
mod_announce: Use usermanager.is_admin to verify admin status

14 years agosessionmanager: Fire event on resource unbind
Waqas Hussain [Tue, 23 Jun 2009 18:54:57 +0000 (23:54 +0500)]
sessionmanager: Fire event on resource unbind

14 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Tue, 23 Jun 2009 14:58:56 +0000 (15:58 +0100)]
Automated merge with http://waqas.ath.cx:8000/

14 years agoREADME: Update for new MUC address
Matthew Wild [Tue, 23 Jun 2009 14:40:30 +0000 (15:40 +0100)]
README: Update for new MUC address

14 years agoprosodyctl: Allow commands to be implemented in modules
Matthew Wild [Tue, 23 Jun 2009 00:50:10 +0000 (01:50 +0100)]
prosodyctl: Allow commands to be implemented in modules

14 years agomodulemanager: Expose api table to allow others to extend the module API
Matthew Wild [Tue, 23 Jun 2009 00:48:01 +0000 (01:48 +0100)]
modulemanager: Expose api table to allow others to extend the module API

14 years agomodulemanager: Enabled access to the module API from plugin libraries
Waqas Hussain [Mon, 22 Jun 2009 21:15:04 +0000 (02:15 +0500)]
modulemanager: Enabled access to the module API from plugin libraries

14 years agomod_groups: Support for public groups, and extra logging
Matthew Wild [Mon, 22 Jun 2009 21:02:04 +0000 (22:02 +0100)]
mod_groups: Support for public groups, and extra logging

14 years agoutil.pluginloader: Remove unnecessary return value suppressing the real load error
Matthew Wild [Mon, 22 Jun 2009 20:56:52 +0000 (21:56 +0100)]
util.pluginloader: Remove unnecessary return value suppressing the real load error

14 years agomodulemanager: Fix copy/paste error, should be name instead of module_name
Matthew Wild [Mon, 22 Jun 2009 20:54:34 +0000 (21:54 +0100)]
modulemanager: Fix copy/paste error, should be name instead of module_name

14 years agomod_announce: New module to send a message to all online users
Matthew Wild [Mon, 22 Jun 2009 17:05:36 +0000 (18:05 +0100)]
mod_announce: New module to send a message to all online users

14 years agomod_httpserver: Allow configuration of ports and base path, like mod_bosh
Matthew Wild [Mon, 22 Jun 2009 15:16:08 +0000 (16:16 +0100)]
mod_httpserver: Allow configuration of ports and base path, like mod_bosh

14 years agomod_groups: Experimental shared roster support
Matthew Wild [Mon, 22 Jun 2009 13:22:24 +0000 (14:22 +0100)]
mod_groups: Experimental shared roster support

14 years agoprosody: Switch anonymous_login check to use the new datamanager callback syntax
Matthew Wild [Mon, 22 Jun 2009 13:16:06 +0000 (14:16 +0100)]
prosody: Switch anonymous_login check to use the new datamanager callback syntax

14 years agoutil.datamanager: Allow multiple data storage callbacks, and allow them to modify...
Matthew Wild [Mon, 22 Jun 2009 13:15:33 +0000 (14:15 +0100)]
util.datamanager: Allow multiple data storage callbacks, and allow them to modify parameters

14 years agorostermanager: Fire event on roster load
Matthew Wild [Mon, 22 Jun 2009 13:14:28 +0000 (14:14 +0100)]
rostermanager: Fire event on roster load

14 years agosessionmanager: Fire event on resource bind
Matthew Wild [Mon, 22 Jun 2009 01:58:28 +0000 (02:58 +0100)]
sessionmanager: Fire event on resource bind

14 years agomodulemanager: Call 'load' method when loading a module
Matthew Wild [Mon, 22 Jun 2009 01:58:05 +0000 (02:58 +0100)]
modulemanager: Call 'load' method when loading a module

14 years agomodulemanager: Added simple module:require implementation
Waqas Hussain [Sun, 21 Jun 2009 14:15:59 +0000 (19:15 +0500)]
modulemanager: Added simple module:require implementation

14 years agoMerge with Tobias
Matthew Wild [Sat, 20 Jun 2009 21:50:38 +0000 (22:50 +0100)]
Merge with Tobias

14 years agoutil.array: Add support for + operator to create a new array from two arrays joined
Matthew Wild [Sat, 20 Jun 2009 21:47:12 +0000 (22:47 +0100)]
util.array: Add support for + operator to create a new array from two arrays joined

14 years agoutil.array: Make array:reverse() and array:shuffle() return the array to allow chaining
Matthew Wild [Sat, 20 Jun 2009 21:45:07 +0000 (22:45 +0100)]
util.array: Make array:reverse() and array:shuffle() return the array to allow chaining

14 years agoutil.array: Add array:append() method, to append a new array to an existing one
Matthew Wild [Sat, 20 Jun 2009 21:43:54 +0000 (22:43 +0100)]
util.array: Add array:append() method, to append a new array to an existing one

14 years agoAdjust PLAIN and DIGEST-MD5 mechanisms to new password_handler API.
Tobias Markmann [Sat, 20 Jun 2009 20:19:24 +0000 (22:19 +0200)]
Adjust PLAIN and DIGEST-MD5 mechanisms to new password_handler API.

14 years agoAdding a parameter for realm to the password_callback.
Tobias Markmann [Sat, 20 Jun 2009 17:34:30 +0000 (19:34 +0200)]
Adding a parameter for realm to the password_callback.

14 years agoAdding COMPAT comment.
Tobias Markmann [Sat, 20 Jun 2009 17:06:04 +0000 (19:06 +0200)]
Adding COMPAT comment.

14 years agostanza_router: Skip prepping 'to' in many common cases - #optimization
Waqas Hussain [Sat, 20 Jun 2009 13:18:38 +0000 (18:18 +0500)]
stanza_router: Skip prepping 'to' in many common cases - #optimization

14 years agostanza_router: Skip prepping 'from' on c2s origins - #optimization
Waqas Hussain [Sat, 20 Jun 2009 13:08:57 +0000 (18:08 +0500)]
stanza_router: Skip prepping 'from' on c2s origins - #optimization

14 years agostanza_router: Fixed a corner case where processing could continue after an error...
Waqas Hussain [Sat, 20 Jun 2009 12:53:39 +0000 (17:53 +0500)]
stanza_router: Fixed a corner case where processing could continue after an error reply

14 years agostanza_router: A little refactoring
Waqas Hussain [Sat, 20 Jun 2009 12:51:00 +0000 (17:51 +0500)]
stanza_router: A little refactoring

14 years agocomponentmanager: Using prosody.events instead of core.eventmanager
Waqas Hussain [Sat, 20 Jun 2009 09:38:22 +0000 (14:38 +0500)]
componentmanager: Using prosody.events instead of core.eventmanager