s2smanager: Add incoming_s2s to the prosody object

hostmanager: deactivate() now accepts a reason, closes s2s connections as well as disconnecting users, and unloads modules for the host

hostmanager: Add return _M;

tests: Fix stanza_router tests to work with the new routing code, finally all tests pass again \o/

tests: More environment magic to help get stuff working in a sandbox

stanza_router: Localize hosts, full_sessions and bare_sessions, and take from the prosody object instead of _G

componentmanager: Handle missing prosody object (helps us pass some tests)

prosody: Move global protection earlier (to before modules are loaded, etc.)

prosody: Require new require :)

prosody: Require some core/util libraries which core modules depend upon, C modules and other modules which write to _G

prosody: Rename global net_activate_ports -> prosody.net_activate_ports

util.require: A replacement for Lua's require/module that doesn't load into the global environment by default (C modules still get past this)

util.helpers: Add copyright header

tests: Have fake module() set _M to satisfy some modules

s2smanager: Fix access of 'config' global without requiring configmanager

tests: Add tests for new modulemanager load_modules_for_host code

modulemanager: Re-organise module loading to still work when no global modules_enabled is defined in the config (thanks hoelzro for accidentally discovering this one)

util.helpers: Add get_upvalue(function, name) helper

util.dataforms: Incorporate slightly modified patch for list-single type from Florob

mod_vcard: Hide me from the trailing-whitespace police

mod_vcard: Add vcard_compatibility option to handle vcard stanzas routed to the full JID by ejabberd MUC rooms

Merge with 0.5

xmppserver_listener: Fix typo (thanks Jorj)

Merge with 0.5

net.server: Better handling of closing sockets during send

xmppserver_listener: More forcefully close s2s connections (fixes fd leak)

Merge with 0.5

net.dns: Remove sockets from socketset when closing them, fixes a leak

(0) -1000 -300 -100 -50 -28 +28 +50 +100 +300 +1000 tip

mercurial