aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-02-24 16:23:46 +0000
committerMatthew Wild <mwild1@gmail.com>2012-02-24 16:23:46 +0000
commit07151a029c71a7d868003f5ab3c76d4e9812eb2d (patch)
treede23e9acf420ce5ae271837be41e71f46350c79c /core
parentf397b79717e372748b156e4874d0b0a483a2c134 (diff)
parent39a677bc8af8e6e97e896afb72e986ae7cbb9a7e (diff)
downloadprosody-07151a029c71a7d868003f5ab3c76d4e9812eb2d.tar.gz
prosody-07151a029c71a7d868003f5ab3c76d4e9812eb2d.zip
Merge Zash with Florob and Maranda
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua2
-rw-r--r--core/s2smanager.lua5
2 files changed, 2 insertions, 5 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index a192e637..0ca37105 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -34,7 +34,7 @@ end
local array, set = require "util.array", require "util.set";
-local autoload_modules = {"presence", "message", "iq", "offline"};
+local autoload_modules = {"presence", "message", "iq", "offline", "c2s", "s2s"};
local component_inheritable_modules = {"tls", "dialback", "iq"};
-- We need this to let modules access the real global namespace
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index e61aaccb..6877ee18 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -114,10 +114,7 @@ function mark_connected(session)
local from, to = session.from_host, session.to_host;
session.log("info", session.direction.." s2s connection "..from.."->"..to.." complete");
-
- local send_to_host = send_to_host;
- function session.send(data) return send_to_host(to, from, data); end
-
+
local event_data = { session = session };
if session.type == "s2sout" then
prosody.events.fire_event("s2sout-established", event_data);