aboutsummaryrefslogtreecommitdiffstats
path: root/net/connlisteners.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-29 03:28:07 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-29 03:28:07 +0000
commitf03d1616f0b685bda23dfbe79d4d8cc7fd95fde5 (patch)
tree132e2f26bf8f64086adc5f75fc45a9921a1e5e4c /net/connlisteners.lua
parente7cfd639687786d0426897f4706200818c66295a (diff)
parent7271c148cef981f9263a8794ebe27634423b07bd (diff)
downloadprosody-f03d1616f0b685bda23dfbe79d4d8cc7fd95fde5.tar.gz
prosody-f03d1616f0b685bda23dfbe79d4d8cc7fd95fde5.zip
Automated merge with http://waqas.ath.cx/
Diffstat (limited to 'net/connlisteners.lua')
-rw-r--r--net/connlisteners.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/connlisteners.lua b/net/connlisteners.lua
index 2b95331c..cfb6aa39 100644
--- a/net/connlisteners.lua
+++ b/net/connlisteners.lua
@@ -1,4 +1,5 @@
+local listeners_dir = (CFG_SOURCEDIR or "").."/net/";
local server_add = require "net.server".add;
local log = require "util.logger".init("connlisteners");
@@ -26,7 +27,7 @@ end
function get(name)
local h = listeners[name];
if not h then
- pcall(dofile, "net/"..name:gsub("[^%w%-]", "_").."_listener.lua");
+ pcall(dofile, listeners_dir..name:gsub("[^%w%-]", "_").."_listener.lua");
h = listeners[name];
end
return h;
@@ -42,4 +43,4 @@ function start(name, udata)
(udata and udata.interface) or "*", (udata and udata.mode) or h.default_mode or 1, (udata and udata.ssl) or nil );
end
-return _M; \ No newline at end of file
+return _M;