diff options
author | Kim Alvefur <zash@zash.se> | 2015-02-21 10:45:24 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-02-21 10:45:24 +0100 |
commit | 69652ea24bf1d52aa3ee7871f5c67d56c92cfb11 (patch) | |
tree | be2b22a52a3523d84b2550ded4489cd85efecc31 /net/connlisteners.lua | |
parent | 27265c20e21d071bc96171da9b8707aec6ea669b (diff) | |
download | prosody-69652ea24bf1d52aa3ee7871f5c67d56c92cfb11.tar.gz prosody-69652ea24bf1d52aa3ee7871f5c67d56c92cfb11.zip |
net.*: Remove use of module() function
Diffstat (limited to 'net/connlisteners.lua')
-rw-r--r-- | net/connlisteners.lua | 15 |
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 +}; |