Comparison

net/connlisteners.lua @ 6780:647adfd8f738

net.*: Remove use of module() function
author Kim Alvefur <zash@zash.se>
date Sat, 21 Feb 2015 10:45:24 +0100
parent 4797:e239668aa6d2
child 7359:a5a080c12c96
comparison
equal deleted inserted replaced
6779:6236668da30a 6780:647adfd8f738
1 -- COMPAT w/pre-0.9 1 -- COMPAT w/pre-0.9
2 local log = require "util.logger".init("net.connlisteners"); 2 local log = require "util.logger".init("net.connlisteners");
3 local traceback = debug.traceback; 3 local traceback = debug.traceback;
4 4
5 module "httpserver" 5 local _ENV = nil;
6 6
7 function fail() 7 local function fail()
8 log("error", "Attempt to use legacy connlisteners API. For more info see http://prosody.im/doc/developers/network"); 8 log("error", "Attempt to use legacy connlisteners API. For more info see http://prosody.im/doc/developers/network");
9 log("error", "Legacy connlisteners API usage, %s", traceback("", 2)); 9 log("error", "Legacy connlisteners API usage, %s", traceback("", 2));
10 end 10 end
11 11
12 register, deregister = fail, fail; 12 return {
13 get, start = fail, fail, epic_fail; 13 register = fail;
14 14 register = fail;
15 return _M; 15 get = fail;
16 start = fail;
17 -- epic fail
18 };