aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-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;