util.dataforms: Allow separation of options from values in list fields
[prosody.git] / net / connlisteners.lua
index 99ddc720aa570fb02765191ca6b1c47eaddaaee0..000bfa63effa2d85598ca02eb72652240bbc4928 100644 (file)
@@ -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
+};