Diff

core/moduleapi.lua @ 5437:1994a4483b1c

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Sat, 06 Apr 2013 12:21:01 +0100
parent 5434:9dd36e20c1e3
child 5496:7a0b81b5ca71
line wrap: on
line diff
--- a/core/moduleapi.lua	Fri Apr 05 13:06:48 2013 +0100
+++ b/core/moduleapi.lua	Sat Apr 06 12:21:01 2013 +0100
@@ -21,7 +21,10 @@
 
 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" });