prosody.git
15 years agostanza_router: Use stanza.attr.from's host instead of origin.host when routing stanza...
Waqas Hussain [Sun, 14 Jun 2009 09:28:20 +0000 (14:28 +0500)]
stanza_router: Use stanza.attr.from's host instead of origin.host when routing stanzas to remote hosts (fixes problem with sending from node@host components)

15 years agomodulemanager: Change the ideitity attribute typ to type
Waqas Hussain [Fri, 12 Jun 2009 19:07:16 +0000 (00:07 +0500)]
modulemanager: Change the ideitity attribute typ to type

15 years agomod_console: Redirect print() to console session when executing commands in global...
Matthew Wild [Fri, 12 Jun 2009 14:43:24 +0000 (15:43 +0100)]
mod_console: Redirect print() to console session when executing commands in global environment

15 years agomod_console: Fix syntax error
Matthew Wild [Fri, 12 Jun 2009 14:42:43 +0000 (15:42 +0100)]
mod_console: Fix syntax error

15 years agomod_console: Add s2s:close() to close s2s sessions between two hosts
Matthew Wild [Fri, 12 Jun 2009 14:35:04 +0000 (15:35 +0100)]
mod_console: Add s2s:close() to close s2s sessions between two hosts

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Fri, 12 Jun 2009 10:37:34 +0000 (11:37 +0100)]
Automated merge with http://waqas.ath.cx:8000/

15 years agomod_dialback: Change FIXME comment to COMPAT
Matthew Wild [Fri, 12 Jun 2009 10:36:32 +0000 (11:36 +0100)]
mod_dialback: Change FIXME comment to COMPAT

15 years agomod_pep: Add pubsub#publsih disco feature to host
Waqas Hussain [Fri, 12 Jun 2009 10:33:41 +0000 (15:33 +0500)]
mod_pep: Add pubsub#publsih disco feature to host

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Fri, 12 Jun 2009 10:21:25 +0000 (11:21 +0100)]
Automated merge with http://waqas.ath.cx:8000/

15 years agonet.http: (Re-)add url[en|de]code functions
Matthew Wild [Fri, 12 Jun 2009 10:21:11 +0000 (11:21 +0100)]
net.http: (Re-)add url[en|de]code functions

15 years agomod_pep: Add host identity pubsub/pep
Waqas Hussain [Fri, 12 Jun 2009 09:35:52 +0000 (14:35 +0500)]
mod_pep: Add host identity pubsub/pep

15 years agomodulemanager: Added function add_identity(category, type) to the modules API
Waqas Hussain [Fri, 12 Jun 2009 09:32:32 +0000 (14:32 +0500)]
modulemanager: Added function add_identity(category, type) to the modules API

15 years agoMerge
Waqas Hussain [Fri, 12 Jun 2009 08:46:31 +0000 (13:46 +0500)]
Merge

15 years agomod_pep: Fix a nil index bug
Waqas Hussain [Fri, 12 Jun 2009 08:06:41 +0000 (13:06 +0500)]
mod_pep: Fix a nil index bug

15 years agomodulemanager: Use module_name in log entry to fix 'error initialising module "nil...
Matthew Wild [Mon, 8 Jun 2009 12:25:10 +0000 (13:25 +0100)]
modulemanager: Use module_name in log entry to fix 'error initialising module "nil"' error

15 years agomod_message: Require stanza lib to prevent traceback on error replies
Matthew Wild [Sun, 7 Jun 2009 16:44:48 +0000 (17:44 +0100)]
mod_message: Require stanza lib to prevent traceback on error replies

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Sun, 7 Jun 2009 13:19:36 +0000 (14:19 +0100)]
Automated merge with http://waqas.ath.cx:8000/

15 years agomod_pep: Give the presence handler a higher than default priority
Waqas Hussain [Sun, 7 Jun 2009 13:06:01 +0000 (18:06 +0500)]
mod_pep: Give the presence handler a higher than default priority

15 years agomodulemanager: Allow setting a priority while adding an event handler via the module...
Waqas Hussain [Sun, 7 Jun 2009 13:04:56 +0000 (18:04 +0500)]
modulemanager: Allow setting a priority while adding an event handler via the module:hook API

15 years agomod_pep: Send items to contacts coming online
Waqas Hussain [Sun, 7 Jun 2009 13:04:08 +0000 (18:04 +0500)]
mod_pep: Send items to contacts coming online

15 years agomod_pep: Fix undefined global access
Waqas Hussain [Sun, 7 Jun 2009 12:39:34 +0000 (17:39 +0500)]
mod_pep: Fix undefined global access

15 years agomod_console: Show total incoming/outgoing s2s connections
Matthew Wild [Sat, 6 Jun 2009 20:29:34 +0000 (21:29 +0100)]
mod_console: Show total incoming/outgoing s2s connections

15 years agomodulemanager: Don't require xmlns to be non-nil
Matthew Wild [Sat, 6 Jun 2009 16:17:16 +0000 (17:17 +0100)]
modulemanager: Don't require xmlns to be non-nil

15 years agomodulemanager: module:log() -> self:log() fix
Matthew Wild [Sat, 6 Jun 2009 16:15:26 +0000 (17:15 +0100)]
modulemanager: module:log() -> self:log() fix

15 years agomodulemanager: Allow setting priority of stanza handlers
Matthew Wild [Sat, 6 Jun 2009 16:08:47 +0000 (17:08 +0100)]
modulemanager: Allow setting priority of stanza handlers

15 years agomodulemanager: Add module:hook([xmlns, ] name, handler) which uses new stanza events
Matthew Wild [Sat, 6 Jun 2009 15:41:09 +0000 (16:41 +0100)]
modulemanager: Add module:hook([xmlns, ] name, handler) which uses new stanza events

15 years agomod_pep: Maintain user nodes for delayed delivery
Waqas Hussain [Sat, 6 Jun 2009 13:22:29 +0000 (18:22 +0500)]
mod_pep: Maintain user nodes for delayed delivery

15 years agomod_console: Allow running code in the global environment by prefixing with '>'
Matthew Wild [Fri, 5 Jun 2009 19:18:55 +0000 (20:18 +0100)]
mod_console: Allow running code in the global environment by prefixing with '>'

15 years agomod_console: Some "improvements" to the useless server:reload() command :)
Matthew Wild [Fri, 5 Jun 2009 19:18:19 +0000 (20:18 +0100)]
mod_console: Some "improvements" to the useless server:reload() command :)

15 years agomod_console: Much improved module load/unload/reload commands
Matthew Wild [Fri, 5 Jun 2009 18:57:29 +0000 (19:57 +0100)]
mod_console: Much improved module load/unload/reload commands

15 years agoprosody: prosody_reload_config => prosody.reload_config (guess I accidentally missed...
Matthew Wild [Fri, 5 Jun 2009 12:34:21 +0000 (13:34 +0100)]
prosody: prosody_reload_config => prosody.reload_config (guess I accidentally missed it when converting the others)

15 years agoprosody: Prefix hg: to changeset ids in the version
Matthew Wild [Fri, 5 Jun 2009 00:58:40 +0000 (01:58 +0100)]
prosody: Prefix hg: to changeset ids in the version

15 years agomod_version: Use version from prosody.version
Matthew Wild [Fri, 5 Jun 2009 00:27:41 +0000 (01:27 +0100)]
mod_version: Use version from prosody.version

15 years agoprosody: Read version from prosody.version file and set, er, prosody.version!
Matthew Wild [Fri, 5 Jun 2009 00:27:18 +0000 (01:27 +0100)]
prosody: Read version from prosody.version file and set, er, prosody.version!

15 years agoMakefile: Experimental support for recording the version of an installed Prosody
Matthew Wild [Fri, 5 Jun 2009 00:13:39 +0000 (01:13 +0100)]
Makefile: Experimental support for recording the version of an installed Prosody

15 years agomodulemanager: Load mod_message, mod_iq and mod_presence implicitly
Waqas Hussain [Thu, 4 Jun 2009 16:25:05 +0000 (21:25 +0500)]
modulemanager: Load mod_message, mod_iq and mod_presence implicitly

15 years agos2smanager: Use a UUID as the dialback secret
Waqas Hussain [Thu, 4 Jun 2009 16:12:36 +0000 (21:12 +0500)]
s2smanager: Use a UUID as the dialback secret

15 years agostanza_router: Remove unused s2s dialback functions
Waqas Hussain [Thu, 4 Jun 2009 16:11:33 +0000 (21:11 +0500)]
stanza_router: Remove unused s2s dialback functions

15 years agoMerge with trunk
Waqas Hussain [Thu, 4 Jun 2009 15:48:23 +0000 (20:48 +0500)]
Merge with trunk

15 years agoutil.sasl: Remove some nastiness
Waqas Hussain [Thu, 4 Jun 2009 15:27:53 +0000 (20:27 +0500)]
util.sasl: Remove some nastiness

15 years agoutil.uuid: Added function seed(string) to allow further seeding of the PRNG
Waqas Hussain [Thu, 4 Jun 2009 14:55:56 +0000 (19:55 +0500)]
util.uuid: Added function seed(string) to allow further seeding of the PRNG

15 years agoMakefile: Set data directory permissions to 750 on install [thanks Dwayne Bent]
Matthew Wild [Thu, 4 Jun 2009 14:46:05 +0000 (15:46 +0100)]
Makefile: Set data directory permissions to 750 on install [thanks Dwayne Bent]

15 years agoMakefile: Specify permissions on installed executables [thanks mhavela]
Matthew Wild [Thu, 4 Jun 2009 14:30:00 +0000 (15:30 +0100)]
Makefile: Specify permissions on installed executables [thanks mhavela]

15 years agoprosody: Add support for general 'interface' option which is used as the default...
Matthew Wild [Thu, 4 Jun 2009 14:24:43 +0000 (15:24 +0100)]
prosody: Add support for general 'interface' option which is used as the default network interface

15 years agonet.server: Display server port in error messages
Matthew Wild [Thu, 4 Jun 2009 14:22:04 +0000 (15:22 +0100)]
net.server: Display server port in error messages

15 years agoAdding .hgignore
Matthew Wild [Thu, 4 Jun 2009 14:17:39 +0000 (15:17 +0100)]
Adding .hgignore

15 years agoutil.uuid: Now generates RFC 4122 complaint UUIDs (version 4 - random)
Waqas Hussain [Thu, 4 Jun 2009 13:04:26 +0000 (18:04 +0500)]
util.uuid: Now generates RFC 4122 complaint UUIDs (version 4 - random)

15 years agoutil.uuid: More uniqueness!
Waqas Hussain [Thu, 4 Jun 2009 12:41:55 +0000 (17:41 +0500)]
util.uuid: More uniqueness!

15 years agosessionmanager: It really is username@host, not host@username :)
Waqas Hussain [Thu, 4 Jun 2009 00:54:32 +0000 (05:54 +0500)]
sessionmanager: It really is username@host, not host@username :)

15 years agoMy merge!!!!
Waqas Hussain [Thu, 4 Jun 2009 00:37:43 +0000 (05:37 +0500)]
My merge!!!!

15 years agostanza_router: workaround for a Pidgin bug which sets 'to' to the SRV result
Waqas Hussain [Wed, 3 Jun 2009 16:27:32 +0000 (21:27 +0500)]
stanza_router: workaround for a Pidgin bug which sets 'to' to the SRV result

15 years agomod_privacy: Initial commit
Waqas Hussain [Wed, 3 Jun 2009 03:02:24 +0000 (08:02 +0500)]
mod_privacy: Initial commit

15 years agostanza_router: Remove the 'to' attribute when it's value is the bare JID of the local...
Waqas Hussain [Wed, 3 Jun 2009 03:00:07 +0000 (08:00 +0500)]
stanza_router: Remove the 'to' attribute when it's value is the bare JID of the local user sending the stanza

15 years agoprosody.cfg.lua.dist: Enable mod_register by default, but with registration disabled...
Matthew Wild [Tue, 2 Jun 2009 18:56:12 +0000 (19:56 +0100)]
prosody.cfg.lua.dist: Enable mod_register by default, but with registration disabled, and add a comment about it

15 years agosessionmanager: It's username@host, not host@username :)
Matthew Wild [Tue, 2 Jun 2009 18:08:36 +0000 (19:08 +0100)]
sessionmanager: It's username@host, not host@username :)

15 years agomod_message: Fix global access
Waqas Hussain [Tue, 2 Jun 2009 16:22:24 +0000 (21:22 +0500)]
mod_message: Fix global access

15 years agomod_iq: Limit sub-events to get and set IQs
Waqas Hussain [Tue, 2 Jun 2009 15:18:02 +0000 (20:18 +0500)]
mod_iq: Limit sub-events to get and set IQs

15 years agomod_presence: Fix a global access
Waqas Hussain [Tue, 2 Jun 2009 15:15:18 +0000 (20:15 +0500)]
mod_presence: Fix a global access

15 years agomod_presence: Check for nil 'to' attribute in all cases for outgoing stanzas
Waqas Hussain [Tue, 2 Jun 2009 15:10:25 +0000 (20:10 +0500)]
mod_presence: Check for nil 'to' attribute in all cases for outgoing stanzas

15 years agomod_presence: Check for nil 'to' attribute in all cases for incoming stanzas
Waqas Hussain [Tue, 2 Jun 2009 15:07:22 +0000 (20:07 +0500)]
mod_presence: Check for nil 'to' attribute in all cases for incoming stanzas

15 years agomod_presence: return true from incoming presence handlers to prevent further processing
Waqas Hussain [Tue, 2 Jun 2009 11:22:37 +0000 (16:22 +0500)]
mod_presence: return true from incoming presence handlers to prevent further processing

15 years agomod_presence: Handle non-subscription presence and routing
Waqas Hussain [Tue, 2 Jun 2009 11:21:20 +0000 (16:21 +0500)]
mod_presence: Handle non-subscription presence and routing

15 years agomod_presence: Handle subscriptions and probes
Waqas Hussain [Tue, 2 Jun 2009 11:06:02 +0000 (16:06 +0500)]
mod_presence: Handle subscriptions and probes

15 years agomod_presence: Add hooks for inbound presence
Waqas Hussain [Tue, 2 Jun 2009 10:59:03 +0000 (15:59 +0500)]
mod_presence: Add hooks for inbound presence

15 years agomod_presence: Fix a comment
Waqas Hussain [Tue, 2 Jun 2009 10:58:19 +0000 (15:58 +0500)]
mod_presence: Fix a comment

15 years agomod_presence: Handle all outbound presence stanzas
Waqas Hussain [Tue, 2 Jun 2009 10:53:04 +0000 (15:53 +0500)]
mod_presence: Handle all outbound presence stanzas

15 years agomod_presence: A little cleanup
Waqas Hussain [Tue, 2 Jun 2009 02:26:40 +0000 (07:26 +0500)]
mod_presence: A little cleanup

15 years agomod_presence: Remove JIDs from directed presence list on sending error or unavailable...
Waqas Hussain [Tue, 2 Jun 2009 02:23:28 +0000 (07:23 +0500)]
mod_presence: Remove JIDs from directed presence list on sending error or unavailable presence

15 years agomod_presence: Handle outbound presence to full JIDs
Waqas Hussain [Tue, 2 Jun 2009 02:22:16 +0000 (07:22 +0500)]
mod_presence: Handle outbound presence to full JIDs

15 years agomod_message: A little cleanup
Waqas Hussain [Mon, 1 Jun 2009 13:15:28 +0000 (18:15 +0500)]
mod_message: A little cleanup

15 years agomod_message: mod_message now handles all cases
Waqas Hussain [Mon, 1 Jun 2009 13:11:01 +0000 (18:11 +0500)]
mod_message: mod_message now handles all cases

15 years agostanza_router: Reply with an error on groupchat messages to bare JID
Waqas Hussain [Mon, 1 Jun 2009 12:53:39 +0000 (17:53 +0500)]
stanza_router: Reply with an error on groupchat messages to bare JID

15 years agomod_message: Added code to handle error groupchat and headline messages to bare JID
Waqas Hussain [Mon, 1 Jun 2009 12:52:02 +0000 (17:52 +0500)]
mod_message: Added code to handle error groupchat and headline messages to bare JID

15 years agomod_message: Move bare JID processing to it's own function
Waqas Hussain [Mon, 1 Jun 2009 12:36:33 +0000 (17:36 +0500)]
mod_message: Move bare JID processing to it's own function

15 years agostanza_router: Don't reply with an error on invalid JIDs in error or result stanzas
Waqas Hussain [Mon, 1 Jun 2009 10:48:39 +0000 (15:48 +0500)]
stanza_router: Don't reply with an error on invalid JIDs in error or result stanzas

15 years agostanza_router: Proper error for clients sending stanzas after auth but before resourc...
Waqas Hussain [Mon, 1 Jun 2009 10:09:42 +0000 (15:09 +0500)]
stanza_router: Proper error for clients sending stanzas after auth but before resource binding

15 years agomod_iq: Correctly handle the lack of 'to' on IQs
Waqas Hussain [Mon, 1 Jun 2009 06:16:48 +0000 (11:16 +0500)]
mod_iq: Correctly handle the lack of 'to' on IQs

15 years agomod_iq: Immediately return an error for IQs to non-existing bare JIDs
Waqas Hussain [Mon, 1 Jun 2009 05:44:05 +0000 (10:44 +0500)]
mod_iq: Immediately return an error for IQs to non-existing bare JIDs

15 years agomod_iq: Include event data in sub-events
Waqas Hussain [Mon, 1 Jun 2009 05:27:47 +0000 (10:27 +0500)]
mod_iq: Include event data in sub-events

15 years agomod_iq: Error reply for IQ to non-existing session. mod_iq now handles all 'iq/full...
Waqas Hussain [Mon, 1 Jun 2009 04:49:37 +0000 (09:49 +0500)]
mod_iq: Error reply for IQ to non-existing session. mod_iq now handles all 'iq/full' cases

15 years agocomponentmanager: Create events object for configured hosts, and carry it over to...
Matthew Wild [Mon, 1 Jun 2009 01:10:19 +0000 (02:10 +0100)]
componentmanager: Create events object for configured hosts, and carry it over to a new component if one is registered with no events object

15 years agoMerge backout with following commits
Matthew Wild [Mon, 1 Jun 2009 01:06:02 +0000 (02:06 +0100)]
Merge backout with following commits

15 years agoBacked out changeset 98f0e9eadf3b (better fix on the way)
Matthew Wild [Mon, 1 Jun 2009 01:05:27 +0000 (02:05 +0100)]
Backed out changeset 98f0e9eadf3b (better fix on the way)

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Mon, 1 Jun 2009 00:36:42 +0000 (01:36 +0100)]
Automated merge with http://waqas.ath.cx:8000/

15 years agomod_iq: Fire sub-events for IQs directed at bare JIDs and hosts
Waqas Hussain [Mon, 1 Jun 2009 00:35:32 +0000 (05:35 +0500)]
mod_iq: Fire sub-events for IQs directed at bare JIDs and hosts

15 years agostanza_router: Don't route before firing events... waqas, is this safe?
Matthew Wild [Sun, 31 May 2009 21:52:50 +0000 (22:52 +0100)]
stanza_router: Don't route before firing events... waqas, is this safe?

15 years agocomponentmanager: Add events object to registered components if they don't already...
Matthew Wild [Sun, 31 May 2009 20:36:12 +0000 (21:36 +0100)]
componentmanager: Add events object to registered components if they don't already have one

15 years agostanza_router: Fire global event if host doesn't have events, fixes #103
Matthew Wild [Sun, 31 May 2009 20:35:21 +0000 (21:35 +0100)]
stanza_router: Fire global event if host doesn't have events, fixes #103

15 years agonet.xmppclient_listener: Add small comment
Matthew Wild [Sun, 31 May 2009 20:31:02 +0000 (21:31 +0100)]
net.xmppclient_listener: Add small comment

15 years agomodulemanager: Keep track of event handlers added by module:hook, and remove them...
Waqas Hussain [Sun, 31 May 2009 08:31:20 +0000 (13:31 +0500)]
modulemanager: Keep track of event handlers added by module:hook, and remove them on module unload

15 years agostanza_router: Fire events for non-jabber:client and pre-auth stanzas
Waqas Hussain [Sat, 30 May 2009 21:20:30 +0000 (02:20 +0500)]
stanza_router: Fire events for non-jabber:client and pre-auth stanzas

15 years agomodulemanager: Stopped using core.eventmanager in module:fire_event
Waqas Hussain [Sat, 30 May 2009 20:17:19 +0000 (01:17 +0500)]
modulemanager: Stopped using core.eventmanager in module:fire_event

15 years agomod_welcome: Use module:hook instead of module:add_event_hook
Waqas Hussain [Sat, 30 May 2009 20:15:15 +0000 (01:15 +0500)]
mod_welcome: Use module:hook instead of module:add_event_hook

15 years agomod_watchregistrations: Use module:hook instead of module:add_event_hook
Waqas Hussain [Sat, 30 May 2009 20:14:57 +0000 (01:14 +0500)]
mod_watchregistrations: Use module:hook instead of module:add_event_hook

15 years agomodulemanager: module:fire_event now fires on the global and host-specific events...
Waqas Hussain [Sat, 30 May 2009 20:11:48 +0000 (01:11 +0500)]
modulemanager: module:fire_event now fires on the global and host-specific events objects as well

15 years agoxmppcomponent_listener: Removed unused reference to core.eventmanager
Waqas Hussain [Sat, 30 May 2009 20:01:52 +0000 (01:01 +0500)]
xmppcomponent_listener: Removed unused reference to core.eventmanager

15 years agomodulemanager: Made some code more concise
Waqas Hussain [Sat, 30 May 2009 19:54:33 +0000 (00:54 +0500)]
modulemanager: Made some code more concise

15 years agomodulemanager: module:hook now allows global modules to hook events on the prosody...
Waqas Hussain [Sat, 30 May 2009 19:51:13 +0000 (00:51 +0500)]
modulemanager: module:hook now allows global modules to hook events on the prosody.events object

15 years agoRemoved core.eventmanager2
Waqas Hussain [Sat, 30 May 2009 19:46:41 +0000 (00:46 +0500)]
Removed core.eventmanager2

15 years agomod_presence: Changed to use the prosody.events object directly, rather than through...
Waqas Hussain [Sat, 30 May 2009 19:45:02 +0000 (00:45 +0500)]
mod_presence: Changed to use the prosody.events object directly, rather than through eventmanager2