diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-29 03:28:07 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-29 03:28:07 +0000 |
commit | f03d1616f0b685bda23dfbe79d4d8cc7fd95fde5 (patch) | |
tree | 132e2f26bf8f64086adc5f75fc45a9921a1e5e4c /net | |
parent | e7cfd639687786d0426897f4706200818c66295a (diff) | |
parent | 7271c148cef981f9263a8794ebe27634423b07bd (diff) | |
download | prosody-f03d1616f0b685bda23dfbe79d4d8cc7fd95fde5.tar.gz prosody-f03d1616f0b685bda23dfbe79d4d8cc7fd95fde5.zip |
Automated merge with http://waqas.ath.cx/
Diffstat (limited to 'net')
-rw-r--r-- | net/connlisteners.lua | 5 |
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; |