diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-28 23:13:49 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-28 23:13:49 +0100 |
commit | 1ee9f6e09228b268bf3f5dc985d4ba9026a72666 (patch) | |
tree | bcb2c0cbbb3db41e4916b636bc44f9c470b8d867 /net/connlisteners.lua | |
parent | c113aa80c244cafc1f14e4d5942fc35f207ab120 (diff) | |
download | prosody-1ee9f6e09228b268bf3f5dc985d4ba9026a72666.tar.gz prosody-1ee9f6e09228b268bf3f5dc985d4ba9026a72666.zip |
net.connlisteners: Add COMPAT stub, use portmanager!
Diffstat (limited to 'net/connlisteners.lua')
-rw-r--r-- | net/connlisteners.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/connlisteners.lua b/net/connlisteners.lua new file mode 100644 index 00000000..99ddc720 --- /dev/null +++ b/net/connlisteners.lua @@ -0,0 +1,15 @@ +-- COMPAT w/pre-0.9 +local log = require "util.logger".init("net.connlisteners"); +local traceback = debug.traceback; + +module "httpserver" + +function fail() + log("error", "Attempt to use legacy connlisteners API. For more info see http://prosody.im/doc/developers/network"); + log("error", "Legacy connlisteners API usage, %s", traceback("", 2)); +end + +register, deregister = fail, fail; +get, start = fail, fail, epic_fail; + +return _M; |