Comparison

core/moduleapi.lua @ 5434:9dd36e20c1e3

moduleapi: assert() that prosody.core_post_stanza is not nil
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Apr 2013 19:13:46 +0100
parent 5412:a5fcda77c6b1
child 5496:7a0b81b5ca71
comparison
equal deleted inserted replaced
5432:53b16286509a 5434:9dd36e20c1e3
19 local ipairs, pairs, select, unpack = ipairs, pairs, select, unpack; 19 local ipairs, pairs, select, unpack = ipairs, pairs, select, unpack;
20 local tonumber, tostring = tonumber, tostring; 20 local tonumber, tostring = tonumber, tostring;
21 21
22 local prosody = prosody; 22 local prosody = prosody;
23 local hosts = prosody.hosts; 23 local hosts = prosody.hosts;
24 local core_post_stanza = prosody.core_post_stanza; 24
25 -- FIXME: This assert() is to try and catch an obscure bug (2013-04-05)
26 local core_post_stanza = assert(prosody.core_post_stanza,
27 "prosody.core_post_stanza is nil, please report this as a bug");
25 28
26 -- Registry of shared module data 29 -- Registry of shared module data
27 local shared_data = setmetatable({}, { __mode = "v" }); 30 local shared_data = setmetatable({}, { __mode = "v" });
28 31
29 local NULL = {}; 32 local NULL = {};