prosody.git
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

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

15 years agocore.eventmanager2: Now uses the new prosody.events object
Waqas Hussain [Sat, 30 May 2009 19:41:53 +0000 (00:41 +0500)]
core.eventmanager2: Now uses the new prosody.events object

15 years agoAdded new prosody.events object
Waqas Hussain [Sat, 30 May 2009 19:34:08 +0000 (00:34 +0500)]
Added new prosody.events object

15 years agomod_console: c2s:show(), c2s:show_secure(), c2s:show_insecure()
Matthew Wild [Sat, 30 May 2009 14:25:27 +0000 (15:25 +0100)]
mod_console: c2s:show(), c2s:show_secure(), c2s:show_insecure()

15 years agomod_console: Allow restricting results to matching JIDs in s2s:show()
Matthew Wild [Sat, 30 May 2009 13:33:40 +0000 (14:33 +0100)]
mod_console: Allow restricting results to matching JIDs in s2s:show()

15 years agoprosody: Remove global functions
Matthew Wild [Sat, 30 May 2009 13:07:14 +0000 (14:07 +0100)]
prosody: Remove global functions

15 years agomod_posix: Use global prosody object
Matthew Wild [Sat, 30 May 2009 13:05:42 +0000 (14:05 +0100)]
mod_posix: Use global prosody object

15 years agoprosody: (un)lock_globals() -> prosody.(un)lock_globals()
Matthew Wild [Sat, 30 May 2009 13:04:31 +0000 (14:04 +0100)]
prosody: (un)lock_globals() -> prosody.(un)lock_globals()

15 years agoprosody: New global 'prosody' object
Matthew Wild [Sat, 30 May 2009 13:01:12 +0000 (14:01 +0100)]
prosody: New global 'prosody' object

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Sat, 30 May 2009 12:49:38 +0000 (13:49 +0100)]
Automated merge with http://waqas.ath.cx:8000/

15 years agomod_message, mod_iq: A little cleanup
Waqas Hussain [Sat, 30 May 2009 12:48:12 +0000 (17:48 +0500)]
mod_message, mod_iq: A little cleanup

15 years agomod_iq: Initial commit
Waqas Hussain [Sat, 30 May 2009 12:38:53 +0000 (17:38 +0500)]
mod_iq: Initial commit

15 years agomod_message: Initial commit
Waqas Hussain [Sat, 30 May 2009 12:36:05 +0000 (17:36 +0500)]
mod_message: Initial commit

15 years agomodulemanager: Added hook(event, handler) to the plugin API
Waqas Hussain [Sat, 30 May 2009 12:35:32 +0000 (17:35 +0500)]
modulemanager: Added hook(event, handler) to the plugin API

15 years agostanza_router: Fix syntax errors
Matthew Wild [Fri, 29 May 2009 21:11:44 +0000 (22:11 +0100)]
stanza_router: Fix syntax errors

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Fri, 29 May 2009 21:06:21 +0000 (22:06 +0100)]
Automated merge with http://waqas.ath.cx:8000/

15 years agostanza_router: Fire per-host stanza events
Waqas Hussain [Fri, 29 May 2009 21:06:04 +0000 (02:06 +0500)]
stanza_router: Fire per-host stanza events

15 years agohttpclient_listener: Don't use print()...
Matthew Wild [Fri, 29 May 2009 21:04:57 +0000 (22:04 +0100)]
httpclient_listener: Don't use print()...

15 years agosessionmanager: Removed a redundant check
Waqas Hussain [Fri, 29 May 2009 18:23:56 +0000 (23:23 +0500)]
sessionmanager: Removed a redundant check

15 years agosessionmanager: Fixed an old FIXME: A problem caused by an error on an authenticated...
Waqas Hussain [Fri, 29 May 2009 18:22:58 +0000 (23:22 +0500)]
sessionmanager: Fixed an old FIXME: A problem caused by an error on an authenticated but unbound session

15 years agosessionmanager: Add/remove sessions from full_sessions and bare_sessions when binding...
Waqas Hussain [Fri, 29 May 2009 18:14:57 +0000 (23:14 +0500)]
sessionmanager: Add/remove sessions from full_sessions and bare_sessions when binding/unbinding sessions

15 years agosessionmanager: Added reference to globals full_sessions and bare_sessions
Waqas Hussain [Fri, 29 May 2009 18:01:05 +0000 (23:01 +0500)]
sessionmanager: Added reference to globals full_sessions and bare_sessions

15 years agosessionmanager: Removed reference to global 'sessions'
Waqas Hussain [Fri, 29 May 2009 17:56:14 +0000 (22:56 +0500)]
sessionmanager: Removed reference to global 'sessions'

15 years agoAdded globals bare_sessions and full_sessions, which map bare and full JIDs to sessions.
Waqas Hussain [Fri, 29 May 2009 17:54:52 +0000 (22:54 +0500)]
Added globals bare_sessions and full_sessions, which map bare and full JIDs to sessions.

15 years agoRemoved unused global 'session'
Waqas Hussain [Fri, 29 May 2009 17:51:56 +0000 (22:51 +0500)]
Removed unused global 'session'

15 years agomod_tls: Add <required/> to stream feature when TLS is required
Matthew Wild [Fri, 29 May 2009 17:17:03 +0000 (18:17 +0100)]
mod_tls: Add <required/> to stream feature when TLS is required

15 years agomod_legacyauth: Hide stream feature when secure auth is enabled, and session isn...
Matthew Wild [Fri, 29 May 2009 17:04:53 +0000 (18:04 +0100)]
mod_legacyauth: Hide stream feature when secure auth is enabled, and session isn't secure

15 years agomod_saslauth: Don't offer bind/session when they aren't authenticated yet :) [thanks...
Matthew Wild [Fri, 29 May 2009 17:03:48 +0000 (18:03 +0100)]
mod_saslauth: Don't offer bind/session when they aren't authenticated yet :) [thanks albert, again...]

15 years agomod_saslauth, mod_legacyauth: Deny logins to unsecure sessions when require_encryptio...
Matthew Wild [Fri, 29 May 2009 13:33:55 +0000 (14:33 +0100)]
mod_saslauth, mod_legacyauth: Deny logins to unsecure sessions when require_encryption config option is true

15 years agoxmppclient_listener: A connection is also secure when it uses legacy SSL
Matthew Wild [Fri, 29 May 2009 13:31:51 +0000 (14:31 +0100)]
xmppclient_listener: A connection is also secure when it uses legacy SSL

15 years agonet.server: A connection is not secure if we delay the TLS handshake
Matthew Wild [Fri, 29 May 2009 13:30:40 +0000 (14:30 +0100)]
net.server: A connection is not secure if we delay the TLS handshake

15 years agosessionmanager, mod_tls: Mark a session as secure when TLS is active
Matthew Wild [Fri, 29 May 2009 13:28:53 +0000 (14:28 +0100)]
sessionmanager, mod_tls: Mark a session as secure when TLS is active

15 years agostanza_router: Break off resource selection for messages into a standalone function
Matthew Wild [Thu, 28 May 2009 19:39:32 +0000 (20:39 +0100)]
stanza_router: Break off resource selection for messages into a standalone function

15 years agomod_presence: Lower some log levels to their correct values
Matthew Wild [Thu, 28 May 2009 01:59:47 +0000 (02:59 +0100)]
mod_presence: Lower some log levels to their correct values

15 years agomod_presence: Use logger supplied by modulemanager
Matthew Wild [Thu, 28 May 2009 01:56:13 +0000 (02:56 +0100)]
mod_presence: Use logger supplied by modulemanager

15 years agomod_presence: Leave alone the from attribute of session.presence. Big thanks to alber...
Matthew Wild [Thu, 28 May 2009 01:55:14 +0000 (02:55 +0100)]
mod_presence: Leave alone the from attribute of session.presence. Big thanks to albert for figuring out the steps to reproduce this bug, and for giving us a ([very] slight) performance increase!

15 years agoAdd log message when DNS lookup is cancelled
Matthew Wild [Thu, 28 May 2009 01:17:19 +0000 (02:17 +0100)]
Add log message when DNS lookup is cancelled

15 years agonet.adns: Fix for calling handler when cancelling DNS lookup
Matthew Wild [Thu, 28 May 2009 01:16:43 +0000 (02:16 +0100)]
net.adns: Fix for calling handler when cancelling DNS lookup

15 years agomod_watchregistrations: admin -> admins
Matthew Wild [Wed, 27 May 2009 13:03:12 +0000 (14:03 +0100)]
mod_watchregistrations: admin -> admins

15 years agoprosodyctl: Add error message for no-pidfile
Matthew Wild [Tue, 26 May 2009 21:54:46 +0000 (22:54 +0100)]
prosodyctl: Add error message for no-pidfile

15 years agos2smanager: Timeout DNS requests after 60 seconds (or dns_timeout in config)
Matthew Wild [Tue, 26 May 2009 20:59:28 +0000 (21:59 +0100)]
s2smanager: Timeout DNS requests after 60 seconds (or dns_timeout in config)

15 years agonet.adns: Add support for cancelling a non-blocking lookup, optionally calling the...
Matthew Wild [Tue, 26 May 2009 20:48:32 +0000 (21:48 +0100)]
net.adns: Add support for cancelling a non-blocking lookup, optionally calling the handler

15 years agonet.dns: Add support for cancelling a coroutine-based request
Matthew Wild [Tue, 26 May 2009 20:47:25 +0000 (21:47 +0100)]
net.dns: Add support for cancelling a coroutine-based request

15 years agomod_watchregistrations: New plugin to send a message to admins when a new user registers
Matthew Wild [Tue, 26 May 2009 03:51:05 +0000 (04:51 +0100)]
mod_watchregistrations: New plugin to send a message to admins when a new user registers

15 years agomod_roster: Add some comments for the error cases to improve readability
Matthew Wild [Tue, 26 May 2009 00:27:07 +0000 (01:27 +0100)]
mod_roster: Add some comments for the error cases to improve readability

15 years agos2smanager: Only send reply </stream:stream> when connection is still open
Matthew Wild [Tue, 26 May 2009 00:07:52 +0000 (01:07 +0100)]
s2smanager: Only send reply </stream:stream> when connection is still open

15 years agomod_roster: Don't send a query element in roster response if roster is unchanged
Matthew Wild [Tue, 26 May 2009 00:07:21 +0000 (01:07 +0100)]
mod_roster: Don't send a query element in roster response if roster is unchanged

15 years agoMerge with 0.4
Matthew Wild [Fri, 22 May 2009 14:19:12 +0000 (15:19 +0100)]
Merge with 0.4

15 years agoTagging 0.4.2
Matthew Wild [Fri, 22 May 2009 13:50:32 +0000 (14:50 +0100)]
Tagging 0.4.2

15 years agoClose std{in,out,err} when daemonizing
Matthew Wild [Fri, 22 May 2009 13:48:34 +0000 (14:48 +0100)]
Close std{in,out,err} when daemonizing

15 years agoTagging 0.4.2
Matthew Wild [Fri, 22 May 2009 12:37:11 +0000 (13:37 +0100)]
Tagging 0.4.2

15 years agoMerge with 0.4
Matthew Wild [Fri, 22 May 2009 12:35:54 +0000 (13:35 +0100)]
Merge with 0.4

15 years agoFinally add README and INSTALL files
Matthew Wild [Fri, 22 May 2009 12:34:47 +0000 (13:34 +0100)]
Finally add README and INSTALL files

15 years agoMerge with 0.4
Matthew Wild [Thu, 21 May 2009 15:09:15 +0000 (16:09 +0100)]
Merge with 0.4

15 years agostanza_router: Fix for subscriptions to users on components [0.4 branch only]
Matthew Wild [Thu, 21 May 2009 15:06:50 +0000 (16:06 +0100)]
stanza_router: Fix for subscriptions to users on components [0.4 branch only]

15 years agomod_register: Attach session to user-registered and user-deregistered events
Matthew Wild [Thu, 21 May 2009 14:52:20 +0000 (15:52 +0100)]
mod_register: Attach session to user-registered and user-deregistered events

15 years agocore: hosts[*].events
Waqas Hussain [Wed, 20 May 2009 00:23:30 +0000 (05:23 +0500)]
core: hosts[*].events

15 years agoMerge with 0.4
Matthew Wild [Tue, 19 May 2009 12:07:13 +0000 (13:07 +0100)]
Merge with 0.4

15 years agomod_welcome: New plugin to welcome users who register on the server
Matthew Wild [Tue, 19 May 2009 10:56:52 +0000 (11:56 +0100)]
mod_welcome: New plugin to welcome users who register on the server

15 years agomod_register: Fire events and log on account creation/deletion
Matthew Wild [Tue, 19 May 2009 10:53:34 +0000 (11:53 +0100)]
mod_register: Fire events and log on account creation/deletion

15 years agomodulemanager: Add module:fire_event() to module API
Matthew Wild [Tue, 19 May 2009 10:50:22 +0000 (11:50 +0100)]
modulemanager: Add module:fire_event() to module API

15 years agostanza_router: Handle outbound presence if inbound handlers don't catch it
Waqas Hussain [Mon, 18 May 2009 20:07:03 +0000 (01:07 +0500)]
stanza_router: Handle outbound presence if inbound handlers don't catch it

15 years agomod_saslauth: Fix logic error which prevented SASL ANONYMOUS from working
Matthew Wild [Mon, 18 May 2009 03:48:35 +0000 (04:48 +0100)]
mod_saslauth: Fix logic error which prevented SASL ANONYMOUS from working

15 years agoutil.events: Dispatch code now accepts a variable number of arguments
Waqas Hussain [Sat, 16 May 2009 23:50:32 +0000 (04:50 +0500)]
util.events: Dispatch code now accepts a variable number of arguments

15 years agoutil.events: Much more efficient index building
Waqas Hussain [Sat, 16 May 2009 21:06:35 +0000 (02:06 +0500)]
util.events: Much more efficient index building

15 years agostanza_router: s/conn/stream/ in log message
Matthew Wild [Sat, 16 May 2009 19:48:07 +0000 (20:48 +0100)]
stanza_router: s/conn/stream/ in log message

15 years agostanza_router: Remove FIXME and replace with meaningful comment
Matthew Wild [Sat, 16 May 2009 19:19:15 +0000 (20:19 +0100)]
stanza_router: Remove FIXME and replace with meaningful comment

15 years agocomponentmanager: Don't error on stanzas to bare component JID
Matthew Wild [Sat, 16 May 2009 17:23:54 +0000 (18:23 +0100)]
componentmanager: Don't error on stanzas to bare component JID

15 years agoprosody.cfg.lua.dist: Update example to a better one
Matthew Wild [Sat, 16 May 2009 11:01:44 +0000 (12:01 +0100)]
prosody.cfg.lua.dist: Update example to a better one

15 years agoutil.events: handler priorities
Waqas Hussain [Sat, 16 May 2009 10:56:45 +0000 (15:56 +0500)]
util.events: handler priorities

15 years agomodulemanager: require util.stanza
Waqas Hussain [Sat, 16 May 2009 00:28:04 +0000 (05:28 +0500)]
modulemanager: require util.stanza

15 years agomodulemanager: Don't close the stream on unhandled stream:features
Waqas Hussain [Sat, 16 May 2009 00:07:51 +0000 (05:07 +0500)]
modulemanager: Don't close the stream on unhandled stream:features

15 years agostanza_router: Added global function core_post_stanza
Waqas Hussain [Fri, 15 May 2009 22:58:05 +0000 (03:58 +0500)]
stanza_router: Added global function core_post_stanza

15 years agoutil.jid: Eliminate global method use
Waqas Hussain [Fri, 15 May 2009 22:56:51 +0000 (03:56 +0500)]
util.jid: Eliminate global method use

15 years agoutil.muc: Made internal methods local
Waqas Hussain [Fri, 15 May 2009 22:55:53 +0000 (03:55 +0500)]
util.muc: Made internal methods local

15 years agostanza_router: Improved message routing order
Waqas Hussain [Fri, 15 May 2009 21:19:16 +0000 (02:19 +0500)]
stanza_router: Improved message routing order

15 years agoDropped support for resource based components
Waqas Hussain [Fri, 15 May 2009 21:07:27 +0000 (02:07 +0500)]
Dropped support for resource based components

15 years agostanza_router: Removed global function core_handle_stanza
Waqas Hussain [Fri, 15 May 2009 20:41:45 +0000 (01:41 +0500)]
stanza_router: Removed global function core_handle_stanza

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Fri, 15 May 2009 19:38:30 +0000 (20:38 +0100)]
Automated merge with http://waqas.ath.cx:8000/

15 years agostanza_router: Cleaner namespace handling
Waqas Hussain [Fri, 15 May 2009 19:33:49 +0000 (00:33 +0500)]
stanza_router: Cleaner namespace handling

15 years agostanza_router: Refactored core_handle_stanza, and added handling for unsupported...
Waqas Hussain [Fri, 15 May 2009 19:03:24 +0000 (00:03 +0500)]
stanza_router: Refactored core_handle_stanza, and added handling for unsupported top-level stanzas

15 years agostanza_router: Fire events after all checks
Waqas Hussain [Fri, 15 May 2009 18:42:35 +0000 (23:42 +0500)]
stanza_router: Fire events after all checks

15 years agoMerging SASL buggy client workaround with current tip.
Tobias Markmann [Fri, 15 May 2009 15:33:04 +0000 (17:33 +0200)]
Merging SASL buggy client workaround with current tip.

15 years ago.
Tobias Markmann [Fri, 15 May 2009 15:28:39 +0000 (17:28 +0200)]
.

15 years agoSome beauty treatment.
Tobias Markmann [Fri, 15 May 2009 15:28:22 +0000 (17:28 +0200)]
Some beauty treatment.

15 years agoAdding minimal support for authorization identities to workaround buggy SASL implemen...
Tobias Markmann [Fri, 15 May 2009 15:24:52 +0000 (17:24 +0200)]
Adding minimal support for authorization identities to workaround buggy SASL implementations.

15 years agoadding RFC comment
Tobias Markmann [Fri, 15 May 2009 15:05:26 +0000 (17:05 +0200)]
adding RFC comment

15 years agostanza_router: Removed some unnecessary code
Waqas Hussain [Fri, 15 May 2009 03:42:53 +0000 (08:42 +0500)]
stanza_router: Removed some unnecessary code

15 years agostanza_router: Removed a FIXME
Waqas Hussain [Fri, 15 May 2009 03:30:48 +0000 (08:30 +0500)]
stanza_router: Removed a FIXME

15 years agoxmlhandlers: Removed another unnecessary check
Waqas Hussain [Fri, 15 May 2009 02:51:33 +0000 (07:51 +0500)]
xmlhandlers: Removed another unnecessary check

15 years agoxmlhandlers: Removed an unnecessary check
Waqas Hussain [Fri, 15 May 2009 02:27:03 +0000 (07:27 +0500)]
xmlhandlers: Removed an unnecessary check

15 years agocore.xmlhandlers: Removed unused variables
Waqas Hussain [Fri, 15 May 2009 02:24:16 +0000 (07:24 +0500)]
core.xmlhandlers: Removed unused variables