aboutsummaryrefslogtreecommitdiffstats
path: root/net/connlisteners.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-02-21 10:45:24 +0100
committerKim Alvefur <zash@zash.se>2015-02-21 10:45:24 +0100
commit9ed000c898c88bf13d372b77afcf986ff937ca5b (patch)
treebe2b22a52a3523d84b2550ded4489cd85efecc31 /net/connlisteners.lua
parent075278ff98d8d5d8026b07b277cef08a474a6eec (diff)
downloadprosody-9ed000c898c88bf13d372b77afcf986ff937ca5b.tar.gz
prosody-9ed000c898c88bf13d372b77afcf986ff937ca5b.zip
net.*: Remove use of module() function
Diffstat (limited to 'net/connlisteners.lua')
-rw-r--r--net/connlisteners.lua15
1 files changed, 9 insertions, 6 deletions
diff --git a/net/connlisteners.lua b/net/connlisteners.lua
index 99ddc720..000bfa63 100644
--- a/net/connlisteners.lua
+++ b/net/connlisteners.lua
@@ -2,14 +2,17 @@
local log = require "util.logger".init("net.connlisteners");
local traceback = debug.traceback;
-module "httpserver"
+local _ENV = nil;
-function fail()
+local 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;
+return {
+ register = fail;
+ register = fail;
+ get = fail;
+ start = fail;
+ -- epic fail
+};