prosody.git
12 years agoMerge with Zash
Matthew Wild [Sat, 3 Mar 2012 18:27:32 +0000 (18:27 +0000)]
Merge with Zash

12 years agomod_dialback, mod_s2s: Log initiation of dialback in mod_dialback
Kim Alvefur [Sat, 3 Mar 2012 15:45:34 +0000 (16:45 +0100)]
mod_dialback, mod_s2s: Log initiation of dialback in mod_dialback

12 years agomod_s2s, mod_dialback: Rename event to s2s-authenticate-legacy
Kim Alvefur [Sat, 3 Mar 2012 12:28:33 +0000 (13:28 +0100)]
mod_s2s, mod_dialback: Rename event to s2s-authenticate-legacy

12 years agoMerge with Zash
Matthew Wild [Sat, 3 Mar 2012 01:12:16 +0000 (01:12 +0000)]
Merge with Zash

12 years agomod_s2s, mod_dialback: Event on pre-XMPP streams, so we can try dialback.
Kim Alvefur [Sat, 3 Mar 2012 00:35:39 +0000 (01:35 +0100)]
mod_s2s, mod_dialback: Event on pre-XMPP streams, so we can try dialback.

12 years agocore.portmanager: Make sure the private flag takes precedence over global interfaces
Kim Alvefur [Fri, 2 Mar 2012 23:54:19 +0000 (00:54 +0100)]
core.portmanager: Make sure the private flag takes precedence over global interfaces

12 years agomod_admin_telnet: Import util.iterators properly
Kim Alvefur [Fri, 2 Mar 2012 23:32:57 +0000 (00:32 +0100)]
mod_admin_telnet: Import util.iterators properly

12 years agomod_s2s: return true when we sent the stanza, or initiated a new s2sout
Kim Alvefur [Fri, 2 Mar 2012 23:14:48 +0000 (00:14 +0100)]
mod_s2s: return true when we sent the stanza, or initiated a new s2sout

12 years agomod_s2s: Split send_to_host() into two route/remote hooks, one for already exsisting...
Kim Alvefur [Fri, 2 Mar 2012 23:03:06 +0000 (00:03 +0100)]
mod_s2s: Split send_to_host() into two route/remote hooks, one for already exsisting sessions and one for non-existent.

12 years agomod_dialback: Remove unused import of s2smanager.send_to_host()
Kim Alvefur [Fri, 2 Mar 2012 23:01:10 +0000 (00:01 +0100)]
mod_dialback: Remove unused import of s2smanager.send_to_host()

12 years agoFix make install for mod_s2s.
Thijs Alkemade [Fri, 2 Mar 2012 18:56:10 +0000 (19:56 +0100)]
Fix make install for mod_s2s.

12 years agomod_s2s: Add missing local table.insert
Kim Alvefur [Wed, 29 Feb 2012 23:14:53 +0000 (00:14 +0100)]
mod_s2s: Add missing local table.insert

12 years agos2smanager, mod_s2s: clear up ip_hosts after s2s is marked as established, remove...
Marco Cirillo [Fri, 24 Feb 2012 18:03:27 +0000 (18:03 +0000)]
s2smanager, mod_s2s: clear up ip_hosts after s2s is marked as established, remove useless space from mod_s2s code

12 years agoMerge backout
Matthew Wild [Fri, 24 Feb 2012 16:25:45 +0000 (16:25 +0000)]
Merge backout

12 years agoBacked out changeset aba47e6dff43
Matthew Wild [Fri, 24 Feb 2012 16:25:38 +0000 (16:25 +0000)]
Backed out changeset aba47e6dff43

12 years agoMerge Zash with Florob and Maranda
Matthew Wild [Fri, 24 Feb 2012 16:23:46 +0000 (16:23 +0000)]
Merge Zash with Florob and Maranda

12 years agomod_s2s: prevent attempting to reconnect when the stream is gracefully closed and...
Marco Cirillo [Fri, 24 Feb 2012 15:36:36 +0000 (15:36 +0000)]
mod_s2s: prevent attempting to reconnect when the stream is gracefully closed and fix TB by checking session.conn is set (racy racy?)

12 years agomod_admin_telnet: make service private.
Marco Cirillo [Fri, 24 Feb 2012 15:35:04 +0000 (15:35 +0000)]
mod_admin_telnet: make service private.

12 years agomod_s2s, s2sout.lib: import cert verify and add another fallback method in case socke...
Marco Cirillo [Fri, 24 Feb 2012 15:34:25 +0000 (15:34 +0000)]
mod_s2s, s2sout.lib: import cert verify and add another fallback method in case socket.local_addresses isn't there.

12 years agos2sout.lib: import utils/functionality once in s2smanager.
Florian Zeitz [Fri, 24 Feb 2012 15:24:10 +0000 (15:24 +0000)]
s2sout.lib: import utils/functionality once in s2smanager.

12 years agomod_s2s: port functionality once in s2smanager.
Florian Zeitz [Fri, 24 Feb 2012 15:21:21 +0000 (15:21 +0000)]
mod_s2s: port functionality once in s2smanager.

12 years agomod_dialback: import util.hashes and functionality once in s2smanager.
Florian Zeitz [Fri, 24 Feb 2012 15:20:03 +0000 (15:20 +0000)]
mod_dialback: import util.hashes and functionality once in s2smanager.

12 years agos2smanager: remove send_to_host.
Florian Zeitz [Fri, 24 Feb 2012 15:15:43 +0000 (15:15 +0000)]
s2smanager: remove send_to_host.

12 years agomodulemanager: include mod_c2s and mod_s2s into autoloaded modules.
Florian Zeitz [Fri, 24 Feb 2012 15:14:07 +0000 (15:14 +0000)]
modulemanager: include mod_c2s and mod_s2s into autoloaded modules.

12 years agos2sout.lib: Fix wrong variable name
Kim Alvefur [Thu, 23 Feb 2012 22:12:24 +0000 (23:12 +0100)]
s2sout.lib: Fix wrong variable name

12 years agos2sout.lib: Add locals for source interfaces
Kim Alvefur [Thu, 23 Feb 2012 22:12:08 +0000 (23:12 +0100)]
s2sout.lib: Add locals for source interfaces

12 years agos2sout.lib: Import various util.*
Kim Alvefur [Thu, 23 Feb 2012 22:09:09 +0000 (23:09 +0100)]
s2sout.lib: Import various util.*

12 years agomod_s2s: Attach send function to session
Kim Alvefur [Thu, 23 Feb 2012 22:04:59 +0000 (23:04 +0100)]
mod_s2s: Attach send function to session

12 years agomod_s2s: Initiate connections
Kim Alvefur [Thu, 23 Feb 2012 22:03:28 +0000 (23:03 +0100)]
mod_s2s: Initiate connections

12 years agomod_s2s: Fix typo
Kim Alvefur [Wed, 22 Feb 2012 22:14:21 +0000 (23:14 +0100)]
mod_s2s: Fix typo

12 years agomod_s2s: Add some missing imports
Kim Alvefur [Wed, 22 Feb 2012 22:12:57 +0000 (23:12 +0100)]
mod_s2s: Add some missing imports

12 years agonet.http, httpclient_listener: Merge listener into net.http
Matthew Wild [Mon, 23 Jan 2012 17:19:16 +0000 (17:19 +0000)]
net.http, httpclient_listener: Merge listener into net.http

12 years agoxmppserver_listener: Remove
Matthew Wild [Mon, 23 Jan 2012 17:12:05 +0000 (17:12 +0000)]
xmppserver_listener: Remove

12 years agos2smanager, mod_s2s, mod_s2s/s2sout: Split connection handling out of s2smanager...
Matthew Wild [Mon, 23 Jan 2012 16:28:20 +0000 (16:28 +0000)]
s2smanager, mod_s2s, mod_s2s/s2sout: Split connection handling out of s2smanager into mod_s2s, and further split connection logic for s2sout to a module lib, s2sout.lib.lua

12 years agostanza_router: Replace s2s send logic with firing of a 'route/remote' event
Matthew Wild [Mon, 23 Jan 2012 16:25:21 +0000 (16:25 +0000)]
stanza_router: Replace s2s send logic with firing of a 'route/remote' event

12 years agostanza_router: Remove obsolete commented code
Matthew Wild [Mon, 23 Jan 2012 16:24:06 +0000 (16:24 +0000)]
stanza_router: Remove obsolete commented code

12 years agosessionmanager: Require uuid_generate()
Matthew Wild [Mon, 23 Jan 2012 02:23:23 +0000 (02:23 +0000)]
sessionmanager: Require uuid_generate()

12 years agomod_c2s: Code reduction
Matthew Wild [Mon, 23 Jan 2012 02:15:28 +0000 (02:15 +0000)]
mod_c2s: Code reduction

12 years agomod_admin_telnet: Port to portmanager
Matthew Wild [Mon, 23 Jan 2012 01:05:32 +0000 (01:05 +0000)]
mod_admin_telnet: Port to portmanager

12 years agoprosody: sandboxed require(): Point __index of _G at current env for modules that...
Matthew Wild [Mon, 23 Jan 2012 01:04:15 +0000 (01:04 +0000)]
prosody: sandboxed require(): Point __index of _G at current env for modules that need to reference globals they already set

12 years agosessionmanager, mod_c2s: Move timeout logic to mod_c2s
Matthew Wild [Mon, 23 Jan 2012 00:56:57 +0000 (00:56 +0000)]
sessionmanager, mod_c2s: Move timeout logic to mod_c2s

12 years agoprosody: Remove connlisteners, and net_activate_ports
Matthew Wild [Mon, 23 Jan 2012 00:11:01 +0000 (00:11 +0000)]
prosody: Remove connlisteners, and net_activate_ports

12 years agoportmanager: Pass port to friendly_error_message()
Matthew Wild [Mon, 23 Jan 2012 00:07:15 +0000 (00:07 +0000)]
portmanager: Pass port to friendly_error_message()

12 years agoutil.iterators: Make a standard library (no longer injects into global namespace)
Matthew Wild [Mon, 23 Jan 2012 00:00:10 +0000 (00:00 +0000)]
util.iterators: Make a standard library (no longer injects into global namespace)

12 years agoutil.set: Accept nil to add_list()
Matthew Wild [Sun, 22 Jan 2012 23:59:19 +0000 (23:59 +0000)]
util.set: Accept nil to add_list()

12 years agomod_c2s, sessionmanager, xmppclient_listener: Move all c2s network and stream logic...
Matthew Wild [Sun, 22 Jan 2012 23:57:13 +0000 (23:57 +0000)]
mod_c2s, sessionmanager, xmppclient_listener: Move all c2s network and stream logic into a new module, mod_c2s

12 years agoportmanager: One manager to, in the darkness, bind them
Matthew Wild [Sun, 22 Jan 2012 23:55:48 +0000 (23:55 +0000)]
portmanager: One manager to, in the darkness, bind them

12 years agoMerge with trunk
Matthew Wild [Sun, 22 Jan 2012 22:55:49 +0000 (22:55 +0000)]
Merge with trunk

12 years agomod_admin_telnet: Use module:shared() to expose commands table and default console...
Matthew Wild [Sun, 22 Jan 2012 19:50:08 +0000 (19:50 +0000)]
mod_admin_telnet: Use module:shared() to expose commands table and default console environment

12 years agomoduleapi: Add module:shared(), a way to easily share data between multiple loaded...
Matthew Wild [Sun, 22 Jan 2012 19:48:53 +0000 (19:48 +0000)]
moduleapi: Add module:shared(), a way to easily share data between multiple loaded modules

12 years agomoduleapi: Add module:depends(), a way to safely depend upon another module at runtime
Matthew Wild [Sun, 22 Jan 2012 19:35:50 +0000 (19:35 +0000)]
moduleapi: Add module:depends(), a way to safely depend upon another module at runtime

12 years agomodulemanager: load(): Return and use the correct module object
Matthew Wild [Sun, 22 Jan 2012 19:27:06 +0000 (19:27 +0000)]
modulemanager: load(): Return and use the correct module object

12 years agoutil.helpers: After nearly 'fixing' this code, I conclude it instead only deserves...
Matthew Wild [Sun, 22 Jan 2012 19:10:13 +0000 (19:10 +0000)]
util.helpers: After nearly 'fixing' this code, I conclude it instead only deserves a bigger smile

12 years agomodulemanager: Cleanup some unused variables, imports, whitespace and add a comment.
Matthew Wild [Sun, 22 Jan 2012 18:49:49 +0000 (18:49 +0000)]
modulemanager: Cleanup some unused variables, imports, whitespace and add a comment.

12 years agomodulemanager, moduleapi: Replace hooks multitable with an event_handlers map stored...
Matthew Wild [Sun, 22 Jan 2012 18:49:11 +0000 (18:49 +0000)]
modulemanager, moduleapi: Replace hooks multitable with an event_handlers map stored in individual modules. Also adds module:hook_object_event() to hook events on any util.events compatible object.

12 years agomodulemanager: Drop unnecessary prosody_events local
Matthew Wild [Sun, 22 Jan 2012 18:47:33 +0000 (18:47 +0000)]
modulemanager: Drop unnecessary prosody_events local

12 years agomodulemanager: Some reorganisation. Only external change is (should be) that module...
Matthew Wild [Sun, 22 Jan 2012 18:46:17 +0000 (18:46 +0000)]
modulemanager: Some reorganisation. Only external change is (should be) that module-unloaded and module-loaded are no longer fired when reloading a module, the new event module-reloaded is fired instead.

12 years agomodulemanager: Move in-module API functions to core.moduleapi (half the file size...
Matthew Wild [Sun, 22 Jan 2012 18:41:55 +0000 (18:41 +0000)]
modulemanager: Move in-module API functions to core.moduleapi (half the file size, yay)

12 years agomod_compression: Change default compression level to 7
Kim Alvefur [Thu, 19 Jan 2012 15:47:12 +0000 (16:47 +0100)]
mod_compression: Change default compression level to 7

12 years agomod_compression: Use get_option_number
Kim Alvefur [Thu, 19 Jan 2012 15:38:04 +0000 (16:38 +0100)]
mod_compression: Use get_option_number

12 years agoMerge with trunk
Matthew Wild [Wed, 18 Jan 2012 15:08:05 +0000 (15:08 +0000)]
Merge with trunk

12 years agoMerge with 0.9
Matthew Wild [Wed, 18 Jan 2012 15:07:40 +0000 (15:07 +0000)]
Merge with 0.9

12 years agomod_tls: Fix log statement (thanks Zash)
Matthew Wild [Wed, 18 Jan 2012 15:07:26 +0000 (15:07 +0000)]
mod_tls: Fix log statement (thanks Zash)

12 years agoutil.json: Added function encode_ordered(object).
Waqas Hussain [Wed, 18 Jan 2012 03:54:26 +0000 (08:54 +0500)]
util.json: Added function encode_ordered(object).

12 years agoxmppserver_listener: Only re-attempt connection on disconnect if it was an unauthenti...
Matthew Wild [Tue, 17 Jan 2012 17:56:36 +0000 (17:56 +0000)]
xmppserver_listener: Only re-attempt connection on disconnect if it was an unauthenticated s2sout (thanks Medics for the log)

12 years agoMerge with 0.9
Matthew Wild [Tue, 17 Jan 2012 00:31:30 +0000 (00:31 +0000)]
Merge with 0.9

12 years agonet.http: Pass response object to callbacks (feels hacky, should this be passed ...
Matthew Wild [Tue, 17 Jan 2012 00:30:52 +0000 (00:30 +0000)]
net.http: Pass response object to callbacks (feels hacky, should this be passed *instead of* the request?)

12 years agonet.server_event: Fix :pause() to actually stop reading from the socket, rather than...
Matthew Wild [Mon, 16 Jan 2012 04:44:23 +0000 (04:44 +0000)]
net.server_event: Fix :pause() to actually stop reading from the socket, rather than ignoring socket-readable events (!), and :resume() to restart the event listener

12 years agoutil.throttle: Fix 'outstanding' return value
Matthew Wild [Fri, 13 Jan 2012 23:30:32 +0000 (23:30 +0000)]
util.throttle: Fix 'outstanding' return value

12 years agoutil.throttle: Fix 'outstanding' return value
Matthew Wild [Fri, 13 Jan 2012 23:30:32 +0000 (23:30 +0000)]
util.throttle: Fix 'outstanding' return value

12 years agoutil.throttle: Import setmetatable
Matthew Wild [Fri, 13 Jan 2012 23:30:00 +0000 (23:30 +0000)]
util.throttle: Import setmetatable

12 years agoutil.throttle: Import setmetatable
Matthew Wild [Fri, 13 Jan 2012 23:30:00 +0000 (23:30 +0000)]
util.throttle: Import setmetatable

12 years agoutil.debug: Adjust level within get_locals_table() to account for the additional...
Matthew Wild [Fri, 13 Jan 2012 15:46:36 +0000 (15:46 +0000)]
util.debug: Adjust level within get_locals_table() to account for the additional depth of this function itself

12 years agomod_component: removed unused variable reference, added "flagging" to assert if a...
Marco Cirillo [Fri, 6 Jan 2012 21:45:33 +0000 (21:45 +0000)]
mod_component: removed unused variable reference, added "flagging" to assert if a component is connected or not.

12 years agonet.xmppcomponent_listener: removed unused variable reference.
Marco Cirillo [Fri, 6 Jan 2012 21:43:30 +0000 (21:43 +0000)]
net.xmppcomponent_listener: removed unused variable reference.

12 years agoutil.stanza: Remove unused __add metamethod
Matthew Wild [Wed, 21 Dec 2011 07:58:22 +0000 (07:58 +0000)]
util.stanza: Remove unused __add metamethod

12 years agos2smanager: Fix missing import of 'type' (thanks darkrain)
Matthew Wild [Tue, 20 Dec 2011 17:36:38 +0000 (17:36 +0000)]
s2smanager: Fix missing import of 'type' (thanks darkrain)

12 years agohostmanager: Add send() method to hosts
Matthew Wild [Fri, 16 Dec 2011 16:01:59 +0000 (16:01 +0000)]
hostmanager: Add send() method to hosts

12 years agousermanager: Prep admin JIDs (fixes issue#276).
Waqas Hussain [Wed, 14 Dec 2011 02:19:58 +0000 (07:19 +0500)]
usermanager: Prep admin JIDs (fixes issue#276).

12 years agos2smanager: Don't throw an error when the "interface" config option is a string ...
Waqas Hussain [Wed, 14 Dec 2011 01:46:24 +0000 (06:46 +0500)]
s2smanager: Don't throw an error when the "interface" config option is a string (which it is by default).

12 years agomod_bosh: Remove unused reference to lxp
Waqas Hussain [Wed, 14 Dec 2011 01:42:23 +0000 (06:42 +0500)]
mod_bosh: Remove unused reference to lxp

12 years agosessionmanager: Remove unused reference to modulemanager
Matthew Wild [Tue, 13 Dec 2011 15:42:21 +0000 (15:42 +0000)]
sessionmanager: Remove unused reference to modulemanager

12 years agos2smanager: Remove unused reference to modulemanager
Matthew Wild [Tue, 13 Dec 2011 15:40:37 +0000 (15:40 +0000)]
s2smanager: Remove unused reference to modulemanager

12 years agomodulemanager: Remove 'config' from module environments (no modules use it that I...
Matthew Wild [Tue, 13 Dec 2011 13:34:21 +0000 (13:34 +0000)]
modulemanager: Remove 'config' from module environments (no modules use it that I'm aware of)

12 years agomod_watchregistrations: Fixed an undefined global access (thanks Medics).
Waqas Hussain [Mon, 12 Dec 2011 09:53:12 +0000 (14:53 +0500)]
mod_watchregistrations: Fixed an undefined global access (thanks Medics).

12 years agoprosodyctl: Adjust description of 'reload' command (thanks crocket)
Matthew Wild [Tue, 17 Jan 2012 21:10:16 +0000 (21:10 +0000)]
prosodyctl: Adjust description of 'reload' command (thanks crocket)

12 years agomod_watchregistrations: Fixed an undefined global access (thanks Medics).
Waqas Hussain [Mon, 12 Dec 2011 09:53:12 +0000 (14:53 +0500)]
mod_watchregistrations: Fixed an undefined global access (thanks Medics).

12 years agoutil/datamanager: Use package.config to figure out directory seperator
James Callahan [Mon, 12 Dec 2011 06:08:48 +0000 (17:08 +1100)]
util/datamanager: Use package.config to figure out directory seperator

12 years agoconfigure: Add 'openbsd' preset (thanks xavier)
Matthew Wild [Sun, 11 Dec 2011 17:08:34 +0000 (17:08 +0000)]
configure: Add 'openbsd' preset (thanks xavier)

12 years agoconfigmanager: get(): Make section (core) optional (hurrah)
Matthew Wild [Sat, 10 Dec 2011 17:21:19 +0000 (17:21 +0000)]
configmanager: get(): Make section (core) optional (hurrah)

12 years agoMerge with Markus K?tter
Matthew Wild [Tue, 24 Apr 2012 02:23:44 +0000 (03:23 +0100)]
Merge with Markus K?tter

12 years agoMerge with 0.9
Matthew Wild [Thu, 19 Apr 2012 18:35:10 +0000 (19:35 +0100)]
Merge with 0.9

12 years agomod_bosh: Log error on BOSH parse failure (thanks daurnimator)
Matthew Wild [Thu, 19 Apr 2012 18:30:47 +0000 (19:30 +0100)]
mod_bosh: Log error on BOSH parse failure (thanks daurnimator)

12 years agomuc - implement per channel history limits
Markus K?tter [Fri, 13 Apr 2012 19:23:26 +0000 (21:23 +0200)]
muc - implement per channel history limits
 - allow configuration via channel settings
 - store the settings for permanent channels
 - honor muc max_history_messages from the config as upper limit
 - only broadcast_message with historic = true if history_length is > 0

12 years agoutil.debug: Move boundary markers to top of relevant sections of the stack trace...
Matthew Wild [Thu, 22 Mar 2012 16:51:39 +0000 (16:51 +0000)]
util.debug: Move boundary markers to top of relevant sections of the stack trace (easier to follow)

12 years agoutil.debug: Add a touch of colour to source locations
Matthew Wild [Thu, 22 Mar 2012 16:39:28 +0000 (16:39 +0000)]
util.debug: Add a touch of colour to source locations

12 years agoutil.debug: Add a bit of colour
Matthew Wild [Thu, 22 Mar 2012 16:07:57 +0000 (16:07 +0000)]
util.debug: Add a bit of colour

12 years agoutil.debug: Move optimal line length (default 65) into a variable
Matthew Wild [Thu, 22 Mar 2012 15:10:38 +0000 (15:10 +0000)]
util.debug: Move optimal line length (default 65) into a variable

12 years agoutil.debug: Add markers in the output when crossing source file boundaries
Matthew Wild [Thu, 22 Mar 2012 15:09:37 +0000 (15:09 +0000)]
util.debug: Add markers in the output when crossing source file boundaries

12 years agoutil.debug: Add catch for an "error in error handling"
Matthew Wild [Thu, 22 Mar 2012 15:08:21 +0000 (15:08 +0000)]
util.debug: Add catch for an "error in error handling"