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 | a2055895d362fed58ff314820bb7fddd53e40436 (patch) | |
tree | bcb2c0cbbb3db41e4916b636bc44f9c470b8d867 /net | |
parent | 005331cb75eeee3e13d35bcc8187d70eb409e48d (diff) | |
download | prosody-a2055895d362fed58ff314820bb7fddd53e40436.tar.gz prosody-a2055895d362fed58ff314820bb7fddd53e40436.zip |
net.connlisteners: Add COMPAT stub, use portmanager!
Diffstat (limited to 'net')
-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; |