aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-28 23:13:49 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-28 23:13:49 +0100
commita2055895d362fed58ff314820bb7fddd53e40436 (patch)
treebcb2c0cbbb3db41e4916b636bc44f9c470b8d867
parent005331cb75eeee3e13d35bcc8187d70eb409e48d (diff)
downloadprosody-a2055895d362fed58ff314820bb7fddd53e40436.tar.gz
prosody-a2055895d362fed58ff314820bb7fddd53e40436.zip
net.connlisteners: Add COMPAT stub, use portmanager!
-rw-r--r--net/connlisteners.lua15
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;