# HG changeset patch # User Matthew Wild # Date 1550163976 0 # Node ID 13b394b0db82246df21bc39b0eddc18d30dd72eb # Parent 2aaf93d2b219aaa7edefe56f4b87eb48ebd2e52f mod_cache_c2s_caps: Fail to load if module:send_iq() is not available diff -r 2aaf93d2b219 -r 13b394b0db82 mod_cache_c2s_caps/mod_cache_c2s_caps.lua --- a/mod_cache_c2s_caps/mod_cache_c2s_caps.lua Wed Feb 13 15:52:58 2019 +0100 +++ b/mod_cache_c2s_caps/mod_cache_c2s_caps.lua Thu Feb 14 17:06:16 2019 +0000 @@ -8,6 +8,8 @@ -- Some clients (*ahem* poezio…) don’t include the @node in their result iq. local iq_node_map = {} +assert(module.send_iq, "This module is not compatible with this version of Prosody."); + local function iq_result_handler(event) local origin, stanza = event.origin, event.stanza;