aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-04-05 19:13:46 +0100
committerMatthew Wild <mwild1@gmail.com>2013-04-05 19:13:46 +0100
commitc816af85d801e02f508ece2cf5e088ba5c40c34a (patch)
tree517f3266425fac26a017f255634ccdf1f568e497 /core/moduleapi.lua
parent1a1562f13793ede08ae068ed0094d006ccbc30b6 (diff)
downloadprosody-c816af85d801e02f508ece2cf5e088ba5c40c34a.tar.gz
prosody-c816af85d801e02f508ece2cf5e088ba5c40c34a.zip
moduleapi: assert() that prosody.core_post_stanza is not nil
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index de900bf0..fa20c3cd 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -21,7 +21,10 @@ local tonumber, tostring = tonumber, tostring;
local prosody = prosody;
local hosts = prosody.hosts;
-local core_post_stanza = prosody.core_post_stanza;
+
+-- FIXME: This assert() is to try and catch an obscure bug (2013-04-05)
+local core_post_stanza = assert(prosody.core_post_stanza,
+ "prosody.core_post_stanza is nil, please report this as a bug");
-- Registry of shared module data
local shared_data = setmetatable({}, { __mode = "v" });