prosody.git
14 years agoxep227toprosody: Fixed some global accesses.
Waqas Hussain [Wed, 27 Jan 2010 18:11:06 +0000 (23:11 +0500)]
xep227toprosody: Fixed some global accesses.

14 years agoxep227toprosody: Initial commit (thanks stefan).
Waqas Hussain [Wed, 27 Jan 2010 18:04:13 +0000 (23:04 +0500)]
xep227toprosody: Initial commit (thanks stefan).

14 years agoxmlhandlers: Removed unused variables.
Waqas Hussain [Mon, 25 Jan 2010 22:39:53 +0000 (03:39 +0500)]
xmlhandlers: Removed unused variables.

14 years agoxmlhandlers: A little optimization.
Waqas Hussain [Mon, 25 Jan 2010 22:39:24 +0000 (03:39 +0500)]
xmlhandlers: A little optimization.

14 years agoMUC: Removed old commented code.
Waqas Hussain [Mon, 25 Jan 2010 21:30:56 +0000 (02:30 +0500)]
MUC: Removed old commented code.

14 years agoMUC: Converted some local functions into methods.
Waqas Hussain [Mon, 25 Jan 2010 21:29:32 +0000 (02:29 +0500)]
MUC: Converted some local functions into methods.

14 years agomod_privacy: Removed a useless 'require' within a function.
Waqas Hussain [Mon, 25 Jan 2010 21:11:50 +0000 (02:11 +0500)]
mod_privacy: Removed a useless 'require' within a function.

14 years agoMerge with trunk.
Waqas Hussain [Mon, 25 Jan 2010 21:10:25 +0000 (02:10 +0500)]
Merge with trunk.

14 years agomod_privacy: Cleaned up code.
Waqas Hussain [Mon, 25 Jan 2010 21:07:13 +0000 (02:07 +0500)]
mod_privacy: Cleaned up code.

14 years agoprosodyctl: Require util.dependencies to run dependency checks, not only for when...
Matthew Wild [Mon, 25 Jan 2010 20:58:15 +0000 (20:58 +0000)]
prosodyctl: Require util.dependencies to run dependency checks, not only for when starting Prosody directly (thanks Joe)

14 years agomod_privacy: Reduced a function.
Waqas Hussain [Mon, 25 Jan 2010 20:49:45 +0000 (01:49 +0500)]
mod_privacy: Reduced a function.

14 years agomod_privacy: Fixed global access.
Waqas Hussain [Mon, 25 Jan 2010 20:47:21 +0000 (01:47 +0500)]
mod_privacy: Fixed global access.

14 years agomod_privacy: Imported from prosody-modules.
Waqas Hussain [Mon, 25 Jan 2010 20:32:39 +0000 (01:32 +0500)]
mod_privacy: Imported from prosody-modules.

14 years agomod_component: Cleaned up unused variables.
Waqas Hussain [Sun, 24 Jan 2010 00:36:25 +0000 (05:36 +0500)]
mod_component: Cleaned up unused variables.

14 years agoprosody: Listen for component connections on port 5347 by default.
Waqas Hussain [Sun, 24 Jan 2010 00:35:21 +0000 (05:35 +0500)]
prosody: Listen for component connections on port 5347 by default.

14 years agoxmlhandlers: Rearranged a little code.
Waqas Hussain [Sat, 23 Jan 2010 13:41:20 +0000 (18:41 +0500)]
xmlhandlers: Rearranged a little code.

14 years agoxmlhandlers: Fixed indentation and added some semicolons.
Waqas Hussain [Sat, 23 Jan 2010 13:33:39 +0000 (18:33 +0500)]
xmlhandlers: Fixed indentation and added some semicolons.

14 years agomod_disco: Added option 'disco_items' to allow appending items to a host's disco...
Waqas Hussain [Sat, 23 Jan 2010 13:16:10 +0000 (18:16 +0500)]
mod_disco: Added option 'disco_items' to allow appending items to a host's disco#items result.

14 years agomod_component: Fix name of config option in error message (thanks nulani!)
Matthew Wild [Sat, 23 Jan 2010 02:53:44 +0000 (02:53 +0000)]
mod_component: Fix name of config option in error message (thanks nulani!)

14 years agoxmppcomponent_listener: Update for new connection API
Matthew Wild [Fri, 22 Jan 2010 16:36:11 +0000 (16:36 +0000)]
xmppcomponent_listener: Update for new connection API

14 years agoutil.dataforms: Add optional type parameters (defaults to 'form')
Matthew Wild [Fri, 22 Jan 2010 14:58:31 +0000 (14:58 +0000)]
util.dataforms: Add optional type parameters (defaults to 'form')

14 years agomod_xmlrpc: Obsolete, remove
Matthew Wild [Fri, 22 Jan 2010 14:48:30 +0000 (14:48 +0000)]
mod_xmlrpc: Obsolete, remove

14 years agomod_bosh: I == fail.
Matthew Wild [Fri, 22 Jan 2010 03:36:03 +0000 (03:36 +0000)]
mod_bosh: I == fail.

14 years agomod_bosh: Simplify cross-domain support, and make it work - default is for cross...
Matthew Wild [Fri, 22 Jan 2010 03:18:55 +0000 (03:18 +0000)]
mod_bosh: Simplify cross-domain support, and make it work - default is for cross-domain to be disallowed

14 years agomod_bosh: Support for cross-domain access control using CORS
Matthew Wild [Thu, 21 Jan 2010 15:07:52 +0000 (15:07 +0000)]
mod_bosh: Support for cross-domain access control using CORS

14 years agonet.httpserver: More robust handling of headers split across multiple packets
Matthew Wild [Thu, 21 Jan 2010 14:53:01 +0000 (14:53 +0000)]
net.httpserver: More robust handling of headers split across multiple packets

14 years agoutil.stanza: Trailing whitespace
Matthew Wild [Thu, 21 Jan 2010 13:22:41 +0000 (13:22 +0000)]
util.stanza: Trailing whitespace

14 years agonet.httpserver: Make it possible to return responses with no body
Matthew Wild [Thu, 21 Jan 2010 13:14:52 +0000 (13:14 +0000)]
net.httpserver: Make it possible to return responses with no body

14 years agonet.httpserver: Close connection on invalid HTTP status line
Matthew Wild [Thu, 21 Jan 2010 13:10:13 +0000 (13:10 +0000)]
net.httpserver: Close connection on invalid HTTP status line

14 years agomodulemanager: Remove obsolete actions code
Matthew Wild [Thu, 21 Jan 2010 12:57:12 +0000 (12:57 +0000)]
modulemanager: Remove obsolete actions code

14 years agonet.server_{select,event}: Fail gracefully if socket doesn't have a setoption method...
Matthew Wild [Thu, 21 Jan 2010 12:56:08 +0000 (12:56 +0000)]
net.server_{select,event}: Fail gracefully if socket doesn't have a setoption method (LuaSec issue I think)

14 years agonet.server_event: Replace all calls to _start_ssl() to its bigger brother starttls...
Matthew Wild [Thu, 21 Jan 2010 12:23:13 +0000 (12:23 +0000)]
net.server_event: Replace all calls to _start_ssl() to its bigger brother starttls() - fixes 5223 w/ libevent

14 years agoobjectmanager: Obsolete, remove
Matthew Wild [Thu, 21 Jan 2010 01:08:50 +0000 (01:08 +0000)]
objectmanager: Obsolete, remove

14 years agoactions: Obsolete, remove
Matthew Wild [Thu, 21 Jan 2010 01:07:17 +0000 (01:07 +0000)]
actions: Obsolete, remove

14 years agomod_actions_http: Obsolete, remove
Matthew Wild [Thu, 21 Jan 2010 01:06:30 +0000 (01:06 +0000)]
mod_actions_http: Obsolete, remove

14 years agomod_bosh: Trailing whitespace
Matthew Wild [Thu, 21 Jan 2010 00:35:07 +0000 (00:35 +0000)]
mod_bosh: Trailing whitespace

14 years agos2smanager: Log error and fail gracefully if we can't open a socket for an outgoing...
Matthew Wild [Tue, 19 Jan 2010 19:58:02 +0000 (19:58 +0000)]
s2smanager: Log error and fail gracefully if we can't open a socket for an outgoing s2s connection (thanks foucault)

14 years agonet.xmppserver_listener: Handle stream-error errors from xmlhandlers, and close sessi...
Matthew Wild [Tue, 19 Jan 2010 04:38:43 +0000 (04:38 +0000)]
net.xmppserver_listener: Handle stream-error errors from xmlhandlers, and close session in response

14 years agonet.xmppserver_listener: Extend session:close() with a remote_reason parameter
Matthew Wild [Tue, 19 Jan 2010 04:37:28 +0000 (04:37 +0000)]
net.xmppserver_listener: Extend session:close() with a remote_reason parameter

14 years agos2smanager: No-one noticed that Prosody stopped sending to/from on stream headers...
Matthew Wild [Tue, 19 Jan 2010 04:35:10 +0000 (04:35 +0000)]
s2smanager: No-one noticed that Prosody stopped sending to/from on stream headers recently? :)

14 years agoxmlhandlers: Move stream-error detection to somewhere more appropriate (it was never...
Matthew Wild [Tue, 19 Jan 2010 03:58:20 +0000 (03:58 +0000)]
xmlhandlers: Move stream-error detection to somewhere more appropriate (it was never reached) - s2s stream errors now reported properly

14 years agomod_bosh: Update for new xmlhandlers syntax
Matthew Wild [Tue, 19 Jan 2010 03:57:19 +0000 (03:57 +0000)]
mod_bosh: Update for new xmlhandlers syntax

14 years agonet.xmpp{client,server,component}: Update for new xmlhandlers syntax
Matthew Wild [Tue, 19 Jan 2010 03:56:44 +0000 (03:56 +0000)]
net.xmpp{client,server,component}: Update for new xmlhandlers syntax

14 years agonet.xmppserver_listener: Pass reason for session disconnection to disconnect handler...
Matthew Wild [Tue, 19 Jan 2010 03:55:19 +0000 (03:55 +0000)]
net.xmppserver_listener: Pass reason for session disconnection to disconnect handler, if known

14 years agoxmlhandlers: More refactoring, split up stream_ns and stream_tag, add stream_error_ta...
Matthew Wild [Tue, 19 Jan 2010 03:52:41 +0000 (03:52 +0000)]
xmlhandlers: More refactoring, split up stream_ns and stream_tag, add stream_error_tag so that callers don't need to be so worried about the separator we use

14 years agoxmlhandlers: Define ns_separator and ns_pattern to save repeating it in literal form...
Matthew Wild [Mon, 18 Jan 2010 19:00:18 +0000 (19:00 +0000)]
xmlhandlers: Define ns_separator and ns_pattern to save repeating it in literal form throughout the file

14 years agonet.server_event: Remove access to starttls method when starttls is negotiated -...
Matthew Wild [Mon, 18 Jan 2010 18:20:03 +0000 (18:20 +0000)]
net.server_event: Remove access to starttls method when starttls is negotiated - fixes offering starttls to client who are already using it (thanks darkrain and Adium)

14 years agomod_presence: Automatically deny presence requests for hosts, fixes traceback in...
Matthew Wild [Mon, 18 Jan 2010 17:14:41 +0000 (17:14 +0000)]
mod_presence: Automatically deny presence requests for hosts, fixes traceback in #153

14 years agostanza_router: Log the name of unhandled stanzas (thanks bear)
Matthew Wild [Mon, 18 Jan 2010 16:31:57 +0000 (16:31 +0000)]
stanza_router: Log the name of unhandled stanzas (thanks bear)

14 years agoutil.signal: Using stdlib.h instead of malloc.h.
Tobias Markmann [Fri, 15 Jan 2010 17:30:33 +0000 (18:30 +0100)]
util.signal: Using stdlib.h instead of malloc.h.

14 years agomod_muc: Remove unused history_length declaration
Matthew Wild [Wed, 13 Jan 2010 00:05:07 +0000 (00:05 +0000)]
mod_muc: Remove unused history_length declaration

14 years agoprosodyctl: Use mode r+ for opening the file so 1) it fails if the file doesn't exist...
Matthew Wild [Wed, 13 Jan 2010 00:04:38 +0000 (00:04 +0000)]
prosodyctl: Use mode r+ for opening the file so 1) it fails if the file doesn't exist 2) we have write access to  lock it

14 years agomod_posix: Adjust file open mode depending on whether file exists (take that fopen...
Matthew Wild [Wed, 13 Jan 2010 00:03:22 +0000 (00:03 +0000)]
mod_posix: Adjust file open mode depending on whether file exists (take that fopen designers!!!)

14 years agoutil.pposix, mod_posix, prosodyctl: Bump pposix version to 0.3.3 for mkdir
Matthew Wild [Tue, 12 Jan 2010 15:35:36 +0000 (15:35 +0000)]
util.pposix, mod_posix, prosodyctl: Bump pposix version to 0.3.3 for mkdir

14 years agoxmppclient_listener: Allow the tcp_keepalives option in the config to control whether...
Matthew Wild [Tue, 12 Jan 2010 15:17:08 +0000 (15:17 +0000)]
xmppclient_listener: Allow the tcp_keepalives option in the config to control whether keepalives are used

14 years agonet.server_event: Add conn:setoption() to set options on the socket
Matthew Wild [Tue, 12 Jan 2010 15:16:22 +0000 (15:16 +0000)]
net.server_event: Add conn:setoption() to set options on the socket

14 years agonet.server_select: Add conn:setoption() to set options on the socket
Matthew Wild [Tue, 12 Jan 2010 15:15:49 +0000 (15:15 +0000)]
net.server_select: Add conn:setoption() to set options on the socket

14 years agomod_saslauth: Fixed some indentation and added some semi-colons.
Waqas Hussain [Mon, 11 Jan 2010 14:17:26 +0000 (19:17 +0500)]
mod_saslauth: Fixed some indentation and added some semi-colons.

14 years agomod_saslauth: Made some variables local to avoid unnecessary global access.
Waqas Hussain [Mon, 11 Jan 2010 14:05:08 +0000 (19:05 +0500)]
mod_saslauth: Made some variables local to avoid unnecessary global access.

14 years agosessionmanager: Added resource prepping, and invalid resource checking to the bind_re...
Waqas Hussain [Mon, 11 Jan 2010 13:59:06 +0000 (18:59 +0500)]
sessionmanager: Added resource prepping, and invalid resource checking to the bind_resource function.

14 years agomod_register: Return a <not-acceptable/> error on empty usernames (thanks Neustradamus).
Waqas Hussain [Mon, 11 Jan 2010 12:52:28 +0000 (17:52 +0500)]
mod_register: Return a <not-acceptable/> error on empty usernames (thanks Neustradamus).

14 years agocomponentmanager: Add dialback_secret to components to allow s2s to work (thanks...
Matthew Wild [Mon, 11 Jan 2010 10:13:02 +0000 (10:13 +0000)]
componentmanager: Add dialback_secret to components to allow s2s to work (thanks Flo)

14 years agoutil.prosodyctl: Report Prosody as not running if the pidfile isn't locked
Matthew Wild [Mon, 11 Jan 2010 00:14:33 +0000 (00:14 +0000)]
util.prosodyctl: Report Prosody as not running if the pidfile isn't locked

14 years agomod_posix: Lock pidfile when in use, shut down if we can't write or lock the pidfile
Matthew Wild [Sun, 10 Jan 2010 23:49:38 +0000 (23:49 +0000)]
mod_posix: Lock pidfile when in use, shut down if we can't write or lock the pidfile

14 years agoutil.datamanager: Use pposix.mkdir if available
Matthew Wild [Sun, 10 Jan 2010 23:13:30 +0000 (23:13 +0000)]
util.datamanager: Use pposix.mkdir if available

14 years agoutil.pposix: Add mkdir(path)
Matthew Wild [Sun, 10 Jan 2010 23:12:22 +0000 (23:12 +0000)]
util.pposix: Add mkdir(path)

14 years agoprosodyctl: Move definition of prosody singleton to prior to loading datamanager...
Matthew Wild [Sun, 10 Jan 2010 23:11:28 +0000 (23:11 +0000)]
prosodyctl: Move definition of prosody singleton to prior to loading datamanager, and add platform

14 years agoutil.pposix: Replace the unwieldy module table generation with luaL_register() call...
Matthew Wild [Sun, 10 Jan 2010 22:43:28 +0000 (22:43 +0000)]
util.pposix: Replace the unwieldy module table generation with luaL_register() call - side effect - it now sets the pposix global to the module table

14 years agomod_posix: Set umask to 'umask' from the config, or 027
Matthew Wild [Sun, 10 Jan 2010 22:15:15 +0000 (22:15 +0000)]
mod_posix: Set umask to 'umask' from the config, or 027

14 years agoprosodyctl: Set umask to protect data files, bump pposix dep to 0.3.2
Matthew Wild [Sun, 10 Jan 2010 22:14:44 +0000 (22:14 +0000)]
prosodyctl: Set umask to protect data files, bump pposix dep to 0.3.2

14 years agoutil.pposix: Add pposix.umask(), bump version to 0.3.2 (and do the same in mod_posix)
Matthew Wild [Sun, 10 Jan 2010 21:48:25 +0000 (21:48 +0000)]
util.pposix: Add pposix.umask(), bump version to 0.3.2 (and do the same in mod_posix)

14 years agoutil.pposix: Fix return type of lc_abort to shush compiler warning
Matthew Wild [Sun, 10 Jan 2010 20:21:48 +0000 (20:21 +0000)]
util.pposix: Fix return type of lc_abort to shush compiler warning

14 years agoutil.posix: Trailing whitespace
Matthew Wild [Sun, 10 Jan 2010 17:35:37 +0000 (17:35 +0000)]
util.posix: Trailing whitespace

14 years agonet.server: When libevent backend is in use, override signal.signal to use server...
Matthew Wild [Sun, 10 Jan 2010 15:26:36 +0000 (15:26 +0000)]
net.server: When libevent backend is in use, override signal.signal to use server.hook_signal

14 years agonet.server_event: Add server.hook_signal(signal_num, handler) to wrap libevent's...
Matthew Wild [Sun, 10 Jan 2010 15:25:19 +0000 (15:25 +0000)]
net.server_event: Add server.hook_signal(signal_num, handler) to wrap libevent's signal-catching interface

14 years agomod_posix: Remove the lines added to work around the util.signal loop bug
Matthew Wild [Sun, 10 Jan 2010 14:09:17 +0000 (14:09 +0000)]
mod_posix: Remove the lines added to work around the util.signal loop bug

14 years agoutil.signal: Restore the old debug hook earlier, just in case we receive another...
Matthew Wild [Sun, 10 Jan 2010 03:54:29 +0000 (03:54 +0000)]
util.signal: Restore the old debug hook earlier, just in case we receive another signal between clearing the signal queue and restoring it

14 years agoutil.signal: Update version in header, and author's email
Matthew Wild [Sun, 10 Jan 2010 00:31:38 +0000 (00:31 +0000)]
util.signal: Update version in header, and author's email

14 years agoutil.signal: Queue up multiple signals, instead of trampling on the previous debug...
Matthew Wild [Sun, 10 Jan 2010 00:28:48 +0000 (00:28 +0000)]
util.signal: Queue up multiple signals, instead of trampling on the previous debug hook (and never clearing our own)

14 years agoprosody: net_activate_ports: Accept strings as well as numbers for specifying ports
Matthew Wild [Sat, 9 Jan 2010 07:12:30 +0000 (07:12 +0000)]
prosody: net_activate_ports: Accept strings as well as numbers for specifying ports

14 years agoprosody: Read list of possible config extensions from configmanager, removes old...
Matthew Wild [Sat, 9 Jan 2010 07:03:48 +0000 (07:03 +0000)]
prosody: Read list of possible config extensions from configmanager, removes old TODO

14 years agoconfigmanager: Add parsers() method to return an array of supported config formats
Matthew Wild [Sat, 9 Jan 2010 06:59:47 +0000 (06:59 +0000)]
configmanager: Add parsers() method to return an array of supported config formats

14 years agos2smanager: Split sending of stream header into a :open_stream() method
Matthew Wild [Sat, 9 Jan 2010 06:53:23 +0000 (06:53 +0000)]
s2smanager: Split sending of stream header into a :open_stream() method

14 years agonet.dns: Make sure math.randomseed() gets passed an integer
Matthew Wild [Thu, 7 Jan 2010 01:26:01 +0000 (01:26 +0000)]
net.dns: Make sure math.randomseed() gets passed an integer

14 years agonet.server_select: Fix oops in last commit
Matthew Wild [Wed, 6 Jan 2010 16:20:56 +0000 (16:20 +0000)]
net.server_select: Fix oops in last commit

14 years agonet.server_select: Allow setting the logger using server.setlogger
Matthew Wild [Wed, 6 Jan 2010 16:16:23 +0000 (16:16 +0000)]
net.server_select: Allow setting the logger using server.setlogger

14 years agos2smanager: Allow new_outgoing() to create sessions without automatically connecting...
Matthew Wild [Mon, 4 Jan 2010 17:32:26 +0000 (17:32 +0000)]
s2smanager: Allow new_outgoing() to create sessions without automatically connecting them (set 3rd parameters to false)

14 years agos2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy.
Paul Aurich [Sun, 3 Jan 2010 19:26:36 +0000 (11:26 -0800)]
s2smanager: Stamp a 'to' on the reply stream:stream.  This makes prosody happy.

14 years agos2smanager, hostmanager: Make dialback secrets per-host
Matthew Wild [Sun, 3 Jan 2010 18:55:42 +0000 (18:55 +0000)]
s2smanager, hostmanager: Make dialback secrets per-host

14 years agos2smanager: Trim trailing whitespace
Matthew Wild [Sun, 3 Jan 2010 18:37:03 +0000 (18:37 +0000)]
s2smanager: Trim trailing whitespace

14 years agomod_saslauth: Oops.
Paul Aurich [Sun, 3 Jan 2010 18:07:20 +0000 (10:07 -0800)]
mod_saslauth: Oops.

14 years agoMerge with Paul
Matthew Wild [Sun, 3 Jan 2010 17:54:26 +0000 (17:54 +0000)]
Merge with Paul

14 years agomod_muc/muc.lib: Use stanza:get_child() to locate MUC child element
Matthew Wild [Sun, 3 Jan 2010 17:53:54 +0000 (17:53 +0000)]
mod_muc/muc.lib: Use stanza:get_child() to locate MUC child element

14 years agomod_saslauth: Use module:get_option()
Paul Aurich [Sun, 3 Jan 2010 17:51:01 +0000 (09:51 -0800)]
mod_saslauth: Use module:get_option()

14 years agoMerge with Rob
Matthew Wild [Sun, 3 Jan 2010 15:17:51 +0000 (15:17 +0000)]
Merge with Rob

14 years agomod_saslauth: Add sasl_backend config parameter
Paul Aurich [Sun, 3 Jan 2010 04:03:24 +0000 (20:03 -0800)]
mod_saslauth: Add sasl_backend config parameter

14 years agoprosodyctl: Gracefully handle a missing stty command, and fall back to ANSI escape...
Matthew Wild [Sun, 3 Jan 2010 03:36:40 +0000 (03:36 +0000)]
prosodyctl: Gracefully handle a missing stty command, and fall back to ANSI escape sequences

14 years agomod_httpserver: Rudimentary directory detection, return forbidden instead of causing...
Matthew Wild [Fri, 1 Jan 2010 21:32:23 +0000 (21:32 +0000)]
mod_httpserver: Rudimentary directory detection, return forbidden instead of causing a traceback (since commit 0325f241a26c)

14 years agoprosody.cfg.lua.dist: Remove lie about requiring console_enabled
Matthew Wild [Fri, 1 Jan 2010 03:32:26 +0000 (03:32 +0000)]
prosody.cfg.lua.dist: Remove lie about requiring console_enabled

14 years agoprosody.cfg.lua.dist: Remove trailing whitespace
Matthew Wild [Fri, 1 Jan 2010 03:29:12 +0000 (03:29 +0000)]
prosody.cfg.lua.dist: Remove trailing whitespace