From 22926813345e5f0046b846cd7817e9483ad4c8e6 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 13 Nov 2008 16:47:16 +0000 Subject: Add support for remote debugger --- main.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.lua') diff --git a/main.lua b/main.lua index eac26fe5..36afa58e 100644 --- a/main.lua +++ b/main.lua @@ -32,6 +32,9 @@ require "core.usermanager" require "core.sessionmanager" require "core.stanza_router" +pcall(require, "remdebug.engine"); +if remdebug then remdebug.engine.start() end + local start = require "net.connlisteners".start; require "util.stanza" require "util.jid" -- cgit v1.2.3 From 22df06d27db30cae5c7d3361a4fe51ab9a89dcbc Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 14 Nov 2008 02:54:56 +0000 Subject: Now outgoing s2s sessions are associated with their from_host, fixes #15 --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.lua') diff --git a/main.lua b/main.lua index 36afa58e..a9154d43 100644 --- a/main.lua +++ b/main.lua @@ -17,7 +17,7 @@ hosts = {}; if config.hosts and #config.hosts > 0 then for _, host in pairs(config.hosts) do - hosts[host] = {type = "local", connected = true, sessions = {}, host = host}; + hosts[host] = {type = "local", connected = true, sessions = {}, host = host, s2sout = {} }; end else error("No hosts defined in the configuration file"); end -- cgit v1.2.3