prosody.git
14 years agopposix: Add setgid() function
Matthew Wild [Thu, 23 Jul 2009 02:40:01 +0000 (03:40 +0100)]
pposix: Add setgid() function

14 years agonet.server: Remove listener from listeners table when calling removeserver
Matthew Wild [Thu, 23 Jul 2009 02:06:49 +0000 (03:06 +0100)]
net.server: Remove listener from listeners table when calling removeserver

14 years agoprosody: Correctly allow console ports to be changed through the config
Matthew Wild [Thu, 23 Jul 2009 01:33:10 +0000 (02:33 +0100)]
prosody: Correctly allow console ports to be changed through the config

14 years agomod_console: Set default_interface to 127.0.0.1
Matthew Wild [Thu, 23 Jul 2009 01:32:00 +0000 (02:32 +0100)]
mod_console: Set default_interface to 127.0.0.1

14 years agonet.server: Set sslctx to false when SSL wrapping fails, to avoid attempting to wrap...
Matthew Wild [Thu, 23 Jul 2009 00:57:09 +0000 (01:57 +0100)]
net.server: Set sslctx to false when SSL wrapping fails, to avoid attempting to wrap clients with a broken context

14 years agoejabberd2prosody, erlparse: Add support for parsing non-ASCII strings and binaries...
Sergei Golovan [Thu, 23 Jul 2009 00:38:13 +0000 (01:38 +0100)]
ejabberd2prosody, erlparse: Add support for parsing non-ASCII strings and binaries, and atoms enclosed in single quotes

14 years agoejabberd2prosody, erlparse.lua: Convert from Windows line endings (thanks teo)
Matthew Wild [Tue, 21 Jul 2009 18:23:03 +0000 (19:23 +0100)]
ejabberd2prosody, erlparse.lua: Convert from Windows line endings (thanks teo)

14 years agonet.server: Continue to initialise port listener even when SSL errors occur
Matthias Diener [Thu, 23 Jul 2009 00:29:41 +0000 (01:29 +0100)]
net.server: Continue to initialise port listener even when SSL errors occur

14 years agomod_presence: Ignore presence sent to host and invalid JIDs, fixes traceback (thanks...
Matthew Wild [Wed, 22 Jul 2009 20:35:41 +0000 (21:35 +0100)]
mod_presence: Ignore presence sent to host and invalid JIDs, fixes traceback (thanks Deepspawn)

14 years agopposix: Change LOG_EMERG -> LOG_CRIT, which makes more sense, thanks to intosi for...
Matthew Wild [Tue, 21 Jul 2009 12:21:52 +0000 (13:21 +0100)]
pposix: Change LOG_EMERG -> LOG_CRIT, which makes more sense, thanks to intosi for reporting and an initial patch

14 years agomod_muc: Set correct 'from' JID when sending the room subject to joiners, fixes a...
Matthew Wild [Tue, 21 Jul 2009 12:19:37 +0000 (13:19 +0100)]
mod_muc: Set correct 'from' JID when sending the room subject to joiners, fixes a traceback

14 years agoTagging 0.5.0
Matthew Wild [Mon, 20 Jul 2009 13:59:51 +0000 (14:59 +0100)]
Tagging 0.5.0

14 years agoutil.xmlrpc: Fixed table serialization (regression introduced in previous change)
Waqas Hussain [Tue, 14 Jul 2009 20:40:11 +0000 (01:40 +0500)]
util.xmlrpc: Fixed table serialization (regression introduced in previous change)

14 years agomod_httpserver: Update to use new new_from_config() too
Matthew Wild [Tue, 14 Jul 2009 20:04:22 +0000 (21:04 +0100)]
mod_httpserver: Update to use new new_from_config() too

14 years agomod_bosh: Update to use new new_from_config()
Matthew Wild [Tue, 14 Jul 2009 20:04:07 +0000 (21:04 +0100)]
mod_bosh: Update to use new new_from_config()

14 years agonet.httpserver: Allow specification of the default base URL when using new_from_config()
Matthew Wild [Tue, 14 Jul 2009 20:03:30 +0000 (21:03 +0100)]
net.httpserver: Allow specification of the default base URL when using new_from_config()

14 years agoprosody.cfg.lua.dist: Add mod_pep to the default config file
Matthew Wild [Tue, 14 Jul 2009 16:09:18 +0000 (17:09 +0100)]
prosody.cfg.lua.dist: Add mod_pep to the default config file

14 years agonet.server: Initiate the handshake when we should, the more correcter fix for the...
Matthew Wild [Mon, 13 Jul 2009 20:17:51 +0000 (21:17 +0100)]
net.server: Initiate the handshake when we should, the more correcter fix for the previous correct fix

14 years agonet.server: Fix copyright header line endings and text
Matthew Wild [Sun, 12 Jul 2009 19:32:38 +0000 (20:32 +0100)]
net.server: Fix copyright header line endings and text

14 years agonet.server: Correct fix for SSL traceback earlier
Matthew Wild [Sun, 12 Jul 2009 19:25:02 +0000 (20:25 +0100)]
net.server: Correct fix for SSL traceback earlier

14 years agomod_bosh: Mark a session as secure if it is created with HTTPS
Matthew Wild [Sun, 12 Jul 2009 18:16:37 +0000 (19:16 +0100)]
mod_bosh: Mark a session as secure if it is created with HTTPS

14 years agonet.httpserver: Mark a request as secure if it is made using HTTPS
Matthew Wild [Sun, 12 Jul 2009 18:16:13 +0000 (19:16 +0100)]
net.httpserver: Mark a request as secure if it is made using HTTPS

14 years agomod_httpserver: Use new httpserver helper to initialise ports
Matthew Wild [Sun, 12 Jul 2009 14:22:37 +0000 (15:22 +0100)]
mod_httpserver: Use new httpserver helper to initialise ports

14 years agomod_bosh: Use new httpserver helper to initialise ports
Matthew Wild [Sun, 12 Jul 2009 14:21:10 +0000 (15:21 +0100)]
mod_bosh: Use new httpserver helper to initialise ports

14 years agonet.httpserver: Add helper function to set up HTTP server according to given config...
Matthew Wild [Sun, 12 Jul 2009 14:20:43 +0000 (15:20 +0100)]
net.httpserver: Add helper function to set up HTTP server according to given config options

14 years agonet.server: Don't continue with socket initialisation if SSL handshake failed, fixes...
Matthew Wild [Sun, 12 Jul 2009 14:18:53 +0000 (15:18 +0100)]
net.server: Don't continue with socket initialisation if SSL handshake failed, fixes nil socket traceback

14 years agonet.server: Don't close handler if it is already nil when SSL handshake fails
Matthew Wild [Sun, 12 Jul 2009 13:29:42 +0000 (14:29 +0100)]
net.server: Don't close handler if it is already nil when SSL handshake fails

14 years agoprosody.cfg.lua: Various small changes
Matthew Wild [Fri, 10 Jul 2009 15:47:31 +0000 (16:47 +0100)]
prosody.cfg.lua: Various small changes

14 years agoprosody.cfg.lua.dist: Move enabled line higher up (people including myself often...
Matthew Wild [Fri, 10 Jul 2009 15:39:50 +0000 (16:39 +0100)]
prosody.cfg.lua.dist: Move enabled line higher up (people including myself often miss it)

14 years agoprosody.cfg.lua.dist: Add auto-loaded modules to the config
Matthew Wild [Fri, 10 Jul 2009 15:38:35 +0000 (16:38 +0100)]
prosody.cfg.lua.dist: Add auto-loaded modules to the config

14 years agomod_uptime: Fix bad uptime if module is loaded at startup
Matthew Wild [Fri, 10 Jul 2009 14:33:53 +0000 (15:33 +0100)]
mod_uptime: Fix bad uptime if module is loaded at startup

14 years agoRemove version number from copyright headers
Matthew Wild [Fri, 10 Jul 2009 02:11:45 +0000 (03:11 +0100)]
Remove version number from copyright headers

14 years agoAdd copyright header to those files missing one
Matthew Wild [Fri, 10 Jul 2009 02:08:38 +0000 (03:08 +0100)]
Add copyright header to those files missing one

14 years agostanza_router: Catch and log an error case which I don't think should happen (but...
Matthew Wild [Fri, 10 Jul 2009 01:50:57 +0000 (02:50 +0100)]
stanza_router: Catch and log an error case which I don't think should happen (but sometimes seems to)

14 years agoRemove completed items from TODO
Matthew Wild [Fri, 10 Jul 2009 01:38:50 +0000 (02:38 +0100)]
Remove completed items from TODO

14 years agoutil.pubsub: Fix undefined global accesses
Matthew Wild [Fri, 10 Jul 2009 01:28:24 +0000 (02:28 +0100)]
util.pubsub: Fix undefined global accesses

14 years agoutil.sasl: Convert spaces to tabs
Matthew Wild [Fri, 10 Jul 2009 01:26:43 +0000 (02:26 +0100)]
util.sasl: Convert spaces to tabs

14 years agoutil.stanza: Convert spaces to tabs
Matthew Wild [Fri, 10 Jul 2009 01:25:14 +0000 (02:25 +0100)]
util.stanza: Convert spaces to tabs

14 years agoutil.hmac: Convert spaces to tabs
Matthew Wild [Fri, 10 Jul 2009 01:19:51 +0000 (02:19 +0100)]
util.hmac: Convert spaces to tabs

14 years agoutil.prosodyctl: Fix undefined global access
Matthew Wild [Fri, 10 Jul 2009 01:16:52 +0000 (02:16 +0100)]
util.prosodyctl: Fix undefined global access

14 years agoeventmanager: Convert from Windows line endings
Matthew Wild [Fri, 10 Jul 2009 01:11:00 +0000 (02:11 +0100)]
eventmanager: Convert from Windows line endings

14 years agomod_time Convert from Windows line endings
Matthew Wild [Thu, 9 Jul 2009 22:06:41 +0000 (23:06 +0100)]
mod_time Convert from Windows line endings

14 years agodiscomanager: Convert from Windows line endings
Matthew Wild [Thu, 9 Jul 2009 22:06:11 +0000 (23:06 +0100)]
discomanager: Convert from Windows line endings

14 years agomod_ping: Convert from Windows line endings
Matthew Wild [Thu, 9 Jul 2009 22:01:13 +0000 (23:01 +0100)]
mod_ping: Convert from Windows line endings

14 years agomod_disco: Convert from Windows line endings
Matthew Wild [Thu, 9 Jul 2009 22:00:32 +0000 (23:00 +0100)]
mod_disco: Convert from Windows line endings

14 years agoutil.discohelper: Convert from Windows line endings
Matthew Wild [Thu, 9 Jul 2009 22:00:01 +0000 (23:00 +0100)]
util.discohelper: Convert from Windows line endings

14 years agomod_presence: Convert from Windows line endings
Matthew Wild [Thu, 9 Jul 2009 21:57:59 +0000 (22:57 +0100)]
mod_presence: Convert from Windows line endings

14 years agoutil.events: Convert from Windows line endings
Matthew Wild [Thu, 9 Jul 2009 21:57:32 +0000 (22:57 +0100)]
util.events: Convert from Windows line endings

14 years agomod_console: Expose commands and environment table
Matthew Wild [Thu, 9 Jul 2009 13:41:56 +0000 (14:41 +0100)]
mod_console: Expose commands and environment table

14 years agomodulemanager: Small code improvement, move autoloaded modules list to the top of...
Matthew Wild [Thu, 9 Jul 2009 13:37:04 +0000 (14:37 +0100)]
modulemanager: Small code improvement, move autoloaded modules list to the top of the file

14 years agoconfigmanager, modulemanager: Allow components to have modules specified in the confi...
Matthew Wild [Thu, 9 Jul 2009 13:34:49 +0000 (14:34 +0100)]
configmanager, modulemanager: Allow components to have modules specified in the config (but don't load the global set of modules for them)

14 years agomod_console: Add quit and exit as aliases for 'bye' command
Matthew Wild [Thu, 9 Jul 2009 03:37:08 +0000 (04:37 +0100)]
mod_console: Add quit and exit as aliases for 'bye' command

14 years agomod_console: Check for commands when not executing in the global environment
Matthew Wild [Thu, 9 Jul 2009 03:34:55 +0000 (04:34 +0100)]
mod_console: Check for commands when not executing in the global environment

14 years agoprosodyctl: Quit when user pressed ^C in password prompts
Matthew Wild [Wed, 8 Jul 2009 15:53:59 +0000 (16:53 +0100)]
prosodyctl: Quit when user pressed ^C in password prompts

14 years agoprosodyctl: Don't 'blugh' when ^C is pressed during reading passwords
Matthew Wild [Wed, 8 Jul 2009 15:48:49 +0000 (16:48 +0100)]
prosodyctl: Don't 'blugh' when ^C is pressed during reading passwords

14 years agoprosodyctl: Fix traceback when issued with no parameters
Matthew Wild [Wed, 8 Jul 2009 15:38:46 +0000 (16:38 +0100)]
prosodyctl: Fix traceback when issued with no parameters

14 years agoutil.xmlrpc: Support for multiple parameters in requests
Matthew Wild [Wed, 8 Jul 2009 14:23:07 +0000 (15:23 +0100)]
util.xmlrpc: Support for multiple parameters in requests

14 years agoutil.xmlrpc: Add create_request
Matthew Wild [Wed, 8 Jul 2009 14:11:11 +0000 (15:11 +0100)]
util.xmlrpc: Add create_request

14 years agomod_console: server:version() and server:uptime() commands
Matthew Wild [Wed, 8 Jul 2009 03:32:02 +0000 (04:32 +0100)]
mod_console: server:version() and server:uptime() commands

14 years agomod_uptime: Use time of server start rather than module load
Matthew Wild [Wed, 8 Jul 2009 03:22:45 +0000 (04:22 +0100)]
mod_uptime: Use time of server start rather than module load

14 years agomod_uptime: Convert to unix line endings
Matthew Wild [Wed, 8 Jul 2009 03:22:15 +0000 (04:22 +0100)]
mod_uptime: Convert to unix line endings

14 years agoprosody: Record time the server started
Matthew Wild [Wed, 8 Jul 2009 03:19:15 +0000 (04:19 +0100)]
prosody: Record time the server started

14 years agos2smanager: Fix to correctly bounce stanzas if first connection attempt fails instantly
Matthew Wild [Wed, 8 Jul 2009 02:14:12 +0000 (03:14 +0100)]
s2smanager: Fix to correctly bounce stanzas if first connection attempt fails instantly

14 years agomod_console: Add c2s:close() command
Matthew Wild [Wed, 8 Jul 2009 01:29:13 +0000 (02:29 +0100)]
mod_console: Add c2s:close() command

14 years agonet.xmppclient_listener: Fix potential traceback when no reason is specified for...
Matthew Wild [Wed, 8 Jul 2009 01:27:33 +0000 (02:27 +0100)]
net.xmppclient_listener: Fix potential traceback when no reason is specified for closing a session

14 years agoMerged with trunk
Waqas Hussain [Sun, 5 Jul 2009 20:40:43 +0000 (01:40 +0500)]
Merged with trunk

14 years agomod_presence: Fixed: Presence probe replies now get sent to the full JID of the probe...
Waqas Hussain [Sun, 5 Jul 2009 20:37:57 +0000 (01:37 +0500)]
mod_presence: Fixed: Presence probe replies now get sent to the full JID of the probe sender

14 years agoMerge with main branch.
Tobias Markmann [Sun, 5 Jul 2009 17:05:25 +0000 (19:05 +0200)]
Merge with main branch.

14 years agoRemove to-unicode conversion because it's done in sasl.lua now.
Tobias Markmann [Sun, 5 Jul 2009 17:05:03 +0000 (19:05 +0200)]
Remove to-unicode conversion because it's done in sasl.lua now.

14 years agoMove to-unicode conversion from mod_saslauth.lua to sasl.lua.
Tobias Markmann [Sun, 5 Jul 2009 17:02:55 +0000 (19:02 +0200)]
Move to-unicode conversion from mod_saslauth.lua to sasl.lua.

14 years agoFixed decoding of parameters.
Tobias Markmann [Sun, 5 Jul 2009 16:59:46 +0000 (18:59 +0200)]
Fixed decoding of parameters.

14 years agomod_console: Allow customisation/suppression of the banner
Matthew Wild [Sun, 5 Jul 2009 16:36:27 +0000 (17:36 +0100)]
mod_console: Allow customisation/suppression of the banner

14 years agoutil.hmac: Some optimisations
Matthew Wild [Sun, 5 Jul 2009 16:10:42 +0000 (17:10 +0100)]
util.hmac: Some optimisations

14 years agoutil.hmac: Fix a global set
Matthew Wild [Sun, 5 Jul 2009 16:06:22 +0000 (17:06 +0100)]
util.hmac: Fix a global set

14 years agomod_presence: Send unavailable presence to resources from non-available resources...
Waqas Hussain [Sun, 5 Jul 2009 15:40:31 +0000 (20:40 +0500)]
mod_presence: Send unavailable presence to resources from non-available resources on disconnect

14 years agoMoved automatic unavailable presence generation on disconnect from sessionmanager...
Waqas Hussain [Sun, 5 Jul 2009 12:45:44 +0000 (17:45 +0500)]
Moved automatic unavailable presence generation on disconnect from sessionmanager to mod_presence

14 years agosessionmanager: Replace raw session by an event data table for resource bind/unbind...
Waqas Hussain [Sun, 5 Jul 2009 11:21:58 +0000 (16:21 +0500)]
sessionmanager: Replace raw session by an event data table for resource bind/unbind events, allowing extra data

14 years agomod_presence: Broadcast presence to resources before contacts
Waqas Hussain [Sun, 5 Jul 2009 07:43:25 +0000 (12:43 +0500)]
mod_presence: Broadcast presence to resources before contacts

14 years agomod_presence: Prevented normal presence from non-interested resources from being...
Waqas Hussain [Sun, 5 Jul 2009 07:40:18 +0000 (12:40 +0500)]
mod_presence: Prevented normal presence from non-interested resources from being dropped

14 years agomod_presence: Changed handle_normal_presence to use a local roster rather than origin...
Waqas Hussain [Sun, 5 Jul 2009 07:25:15 +0000 (12:25 +0500)]
mod_presence: Changed handle_normal_presence to use a local roster rather than origin's roster

14 years agomod_presence: Simplified roster iteration
Waqas Hussain [Sun, 5 Jul 2009 07:17:22 +0000 (12:17 +0500)]
mod_presence: Simplified roster iteration

14 years agomod_presence: Eliminated a jid_split
Waqas Hussain [Sun, 5 Jul 2009 06:59:51 +0000 (11:59 +0500)]
mod_presence: Eliminated a jid_split

14 years agomod_presence: Removed some unnecessary code
Waqas Hussain [Sun, 5 Jul 2009 06:57:18 +0000 (11:57 +0500)]
mod_presence: Removed some unnecessary code

14 years agosessionmanager: Reset bare_sessions[user] after resource conflict resolution. Fixes...
Matthew Wild [Fri, 3 Jul 2009 20:47:26 +0000 (21:47 +0100)]
sessionmanager: Reset bare_sessions[user] after resource conflict resolution. Fixes the other stanza gobbling bug \o/

14 years agomod_presence: Declare t_insert, fixes a potential traceback
Matthew Wild [Fri, 3 Jul 2009 20:44:30 +0000 (21:44 +0100)]
mod_presence: Declare t_insert, fixes a potential traceback

14 years agosessionmanager: Newly created sessions shouldn't have a priority. Fixes one of the...
Matthew Wild [Fri, 3 Jul 2009 20:37:09 +0000 (21:37 +0100)]
sessionmanager: Newly created sessions shouldn't have a priority. Fixes one of the stanza-gobbling bugs \o/

14 years agos2smanager: Log the hostname and address when s2s connection fails instantly
Matthew Wild [Fri, 3 Jul 2009 13:58:11 +0000 (14:58 +0100)]
s2smanager: Log the hostname and address when s2s connection fails instantly

14 years agohostmanager: Add disallow_s2s to config, defaults to false unless anonymous_login...
Matthew Wild [Fri, 3 Jul 2009 03:24:30 +0000 (04:24 +0100)]
hostmanager: Add disallow_s2s to config, defaults to false unless anonymous_login is enabled, then defaults to true

14 years agostanza_router: Check host.disallow_s2s before routing over s2sout. you can haz no...
Matthew Wild [Fri, 3 Jul 2009 03:04:27 +0000 (04:04 +0100)]
stanza_router: Check host.disallow_s2s before routing over s2sout. you can haz no s2s.

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