prosody.git
14 years agoMerge with 0.5
Matthew Wild [Mon, 27 Jul 2009 21:42:36 +0000 (22:42 +0100)]
Merge with 0.5

14 years agoFixed: Possible duplicate error replies for unhandled stanzas
Waqas Hussain [Mon, 27 Jul 2009 19:42:56 +0000 (00:42 +0500)]
Fixed: Possible duplicate error replies for unhandled stanzas

14 years agonet.httpserver: Reduce log level of 'request left open' message
Matthew Wild [Mon, 27 Jul 2009 13:26:59 +0000 (14:26 +0100)]
net.httpserver: Reduce log level of 'request left open' message

14 years agoMerge with 0.5
Matthew Wild [Mon, 27 Jul 2009 00:28:22 +0000 (01:28 +0100)]
Merge with 0.5

14 years agomod_presence: Tag outgoing unavailables generated by a disconnect with a from attribute
Matthew Wild [Mon, 27 Jul 2009 00:27:51 +0000 (01:27 +0100)]
mod_presence: Tag outgoing unavailables generated by a disconnect with a from attribute

14 years agoxmpp{client,server}_listener: Report contents of packets containing invalid XML
Matthew Wild [Sun, 26 Jul 2009 19:58:37 +0000 (20:58 +0100)]
xmpp{client,server}_listener: Report contents of packets containing invalid XML

14 years agomod_console: Show status and priority of clients
Matthew Wild [Sun, 26 Jul 2009 16:05:18 +0000 (17:05 +0100)]
mod_console: Show status and priority of clients

14 years agoejabberdsql2prosody: Fixed a nil global access error
Waqas Hussain [Sun, 26 Jul 2009 13:22:10 +0000 (18:22 +0500)]
ejabberdsql2prosody: Fixed a nil global access error

14 years agoejabberdsql2prosody: Add support for rosterusers.ask == "B" (both pending in and...
Waqas Hussain [Sun, 26 Jul 2009 13:17:54 +0000 (18:17 +0500)]
ejabberdsql2prosody: Add support for rosterusers.ask == "B" (both pending in and out subscriptions)

14 years agoejabberdsql2prosody: Fix typo, and improve the warning message
Waqas Hussain [Sun, 26 Jul 2009 13:12:32 +0000 (18:12 +0500)]
ejabberdsql2prosody: Fix typo, and improve the warning message

14 years agoejabberdsql2prosody: Display a warning if a row has more columns than expected
Waqas Hussain [Sun, 26 Jul 2009 13:05:05 +0000 (18:05 +0500)]
ejabberdsql2prosody: Display a warning if a row has more columns than expected

14 years agoejabberdsql2prosody: Added support for all mysql escape sequences
Waqas Hussain [Sun, 26 Jul 2009 12:51:36 +0000 (17:51 +0500)]
ejabberdsql2prosody: Added support for all mysql escape sequences

14 years agoejabberdsql2prosody: Added support for the escape sequence '\\' in strings
Waqas Hussain [Sun, 26 Jul 2009 12:29:56 +0000 (17:29 +0500)]
ejabberdsql2prosody: Added support for the escape sequence '\\' in strings

14 years agoejabberdsql2prosody: Fixed: 'ask' value should be nil for pending-in subscriptions
Waqas Hussain [Sun, 26 Jul 2009 10:36:06 +0000 (15:36 +0500)]
ejabberdsql2prosody: Fixed: 'ask' value should be nil for pending-in subscriptions

14 years agoejabberdsql2prosody: Fixed: pending-in subscriptions could halt processing
Waqas Hussain [Sun, 26 Jul 2009 10:28:04 +0000 (15:28 +0500)]
ejabberdsql2prosody: Fixed: pending-in subscriptions could halt processing

14 years agoejabberdsql2prosody: Added support for rosters
Waqas Hussain [Sat, 25 Jul 2009 19:32:51 +0000 (00:32 +0500)]
ejabberdsql2prosody: Added support for rosters

14 years agoejabberdsql2prosody: Added a second required command line parameter: hostname
Waqas Hussain [Sat, 25 Jul 2009 18:40:33 +0000 (23:40 +0500)]
ejabberdsql2prosody: Added a second required command line parameter: hostname

14 years agoejabberdsql2prosody: Improved help message
Waqas Hussain [Sat, 25 Jul 2009 18:37:52 +0000 (23:37 +0500)]
ejabberdsql2prosody: Improved help message

14 years agoejabberdsql2prosody: Initial commit
Waqas Hussain [Sat, 25 Jul 2009 18:19:39 +0000 (23:19 +0500)]
ejabberdsql2prosody: Initial commit
 - full parser
 - only exports account data at the moment

14 years agomod_xmlrpc: Remove file and line number from XML-RPC errors
Waqas Hussain [Sat, 25 Jul 2009 14:58:24 +0000 (19:58 +0500)]
mod_xmlrpc: Remove file and line number from XML-RPC errors

14 years agomod_xmlrpc: Fixed typos
Waqas Hussain [Sat, 25 Jul 2009 14:46:17 +0000 (19:46 +0500)]
mod_xmlrpc: Fixed typos

14 years agousermanager: Reduced some code
Waqas Hussain [Sat, 25 Jul 2009 14:18:37 +0000 (19:18 +0500)]
usermanager: Reduced some code

14 years agousermanager: Removed an unnecessary check
Waqas Hussain [Sat, 25 Jul 2009 14:15:05 +0000 (19:15 +0500)]
usermanager: Removed an unnecessary check

14 years agomod_xmlrpc: Added support for secure calls by non-admins
Waqas Hussain [Sat, 25 Jul 2009 13:38:47 +0000 (18:38 +0500)]
mod_xmlrpc: Added support for secure calls by non-admins

14 years agomodulemanager: Added get_option(name, default_value) to plugin API
Waqas Hussain [Sat, 25 Jul 2009 13:37:05 +0000 (18:37 +0500)]
modulemanager: Added get_option(name, default_value) to plugin API

14 years agoSwitch to using a more generic credentials_callback/handler for SASL auth.
nick@lupine.me.uk [Fri, 24 Jul 2009 00:34:25 +0000 (01:34 +0100)]
Switch to using a more generic credentials_callback/handler for SASL auth.

Not all authentication mechanisms have the same requirements; it makes sense
to provide them only with the information they require (and for them to
depend on that) so that as many auth mechanisms as possible can be supported
with a variety of credentials-storing schemes. This commit patches that together

14 years agomod_saslauth, usermanager: Fetch list of mechanisms from usermanager
Nick Thomas [Thu, 23 Jul 2009 21:15:06 +0000 (22:15 +0100)]
mod_saslauth, usermanager: Fetch list of mechanisms from usermanager

14 years agoprosody: net_activate_ports: Check listener exists before trying to open port for it
Matthew Wild [Thu, 23 Jul 2009 20:09:25 +0000 (21:09 +0100)]
prosody: net_activate_ports: Check listener exists before trying to open port for it

14 years agoMerge with 0.5
Matthew Wild [Thu, 23 Jul 2009 11:04:41 +0000 (12:04 +0100)]
Merge with 0.5

14 years agonet.server: Fail to open port if legacy SSL requested, but SSL not available
Matthias Diene [Thu, 23 Jul 2009 11:01:00 +0000 (12:01 +0100)]
net.server: Fail to open port if legacy SSL requested, but SSL not available

14 years agoprosodyctl: Also switch group when we switch user
Matthew Wild [Thu, 23 Jul 2009 02:58:14 +0000 (03:58 +0100)]
prosodyctl: Also switch group when we switch user

14 years agopposix, mod_posix: Bump pposix version number
Matthew Wild [Thu, 23 Jul 2009 02:47:06 +0000 (03:47 +0100)]
pposix, mod_posix: Bump pposix version number

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 agoMerge with 0.5
Matthew Wild [Thu, 23 Jul 2009 00:38:52 +0000 (01:38 +0100)]
Merge with 0.5

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 agoMerge with 0.5
Matthew Wild [Wed, 22 Jul 2009 20:35:58 +0000 (21:35 +0100)]
Merge with 0.5

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 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 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 agoMerge with 0.5
Matthew Wild [Tue, 21 Jul 2009 12:22:48 +0000 (13:22 +0100)]
Merge with 0.5

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 agomod_muc: Expose rooms table to the host and plugins
Matthew Wild [Mon, 20 Jul 2009 04:27:59 +0000 (05:27 +0100)]
mod_muc: Expose rooms table to the host and plugins

14 years agoprosody: Send friendly text with system-shutdown stream error
Matthew Wild [Sat, 18 Jul 2009 17:51:04 +0000 (18:51 +0100)]
prosody: Send friendly text with system-shutdown stream error

14 years agoxmppclient_listener: Use error text as disconnect reason if there is any
Matthew Wild [Sat, 18 Jul 2009 17:49:54 +0000 (18:49 +0100)]
xmppclient_listener: Use error text as disconnect reason if there is any

14 years agomod_console: Add server:shutdown() command
Matthew Wild [Sat, 18 Jul 2009 17:37:06 +0000 (18:37 +0100)]
mod_console: Add server:shutdown() command

14 years agomod_console: Add config:reload() command
Matthew Wild [Sat, 18 Jul 2009 14:34:36 +0000 (15:34 +0100)]
mod_console: Add config:reload() command

14 years agoprosody: Return success/error from prosody.reload_config()
Matthew Wild [Sat, 18 Jul 2009 14:33:16 +0000 (15:33 +0100)]
prosody: Return success/error from prosody.reload_config()

14 years agomod_console: Rename server:reload() to server:insane_reload() (basically no-one shoul...
Matthew Wild [Sat, 18 Jul 2009 14:11:10 +0000 (15:11 +0100)]
mod_console: Rename server:reload() to server:insane_reload() (basically no-one should use it except me...)

14 years agoMerge with 0.5
Matthew Wild [Tue, 14 Jul 2009 21:12:13 +0000 (22:12 +0100)]
Merge with 0.5

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 agoMerge with 0.5
Matthew Wild [Tue, 14 Jul 2009 20:04:57 +0000 (21:04 +0100)]
Merge with 0.5

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 agoMerge with 0.5
Matthew Wild [Tue, 14 Jul 2009 16:09:43 +0000 (17:09 +0100)]
Merge with 0.5

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 agoMerge with 0.5
Matthew Wild [Mon, 13 Jul 2009 20:18:43 +0000 (21:18 +0100)]
Merge with 0.5

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 agoMerge with 0.5
Matthew Wild [Sun, 12 Jul 2009 19:33:09 +0000 (20:33 +0100)]
Merge with 0.5

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 agoMerge with 0.5
Matthew Wild [Sun, 12 Jul 2009 18:17:14 +0000 (19:17 +0100)]
Merge with 0.5

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 agoMerge with 0.5
Matthew Wild [Sun, 12 Jul 2009 14:23:39 +0000 (15:23 +0100)]
Merge with 0.5

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 agoMerge with 0.5
Matthew Wild [Sun, 12 Jul 2009 13:34:02 +0000 (14:34 +0100)]
Merge with 0.5

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: Load util.helpers at startup
Matthew Wild [Sun, 12 Jul 2009 01:08:59 +0000 (02:08 +0100)]
prosody: Load util.helpers at startup

14 years agoutil.helpers: New util library to aid with debugging, etc.
Matthew Wild [Sun, 12 Jul 2009 01:07:14 +0000 (02:07 +0100)]
util.helpers: New util library to aid with debugging, etc.

14 years agoprosody: Call initialisation functions at once
Matthew Wild [Sat, 11 Jul 2009 17:06:03 +0000 (18:06 +0100)]
prosody: Call initialisation functions at once

14 years agoprosody: Start of refactoring of main file
Matthew Wild [Sat, 11 Jul 2009 16:55:36 +0000 (17:55 +0100)]
prosody: Start of refactoring of main file

14 years agoutil.pubsub -> util.broadcast
Matthew Wild [Sat, 11 Jul 2009 14:16:18 +0000 (15:16 +0100)]
util.pubsub -> util.broadcast

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