# HG changeset patch # User Kim Alvefur # Date 1465219529 -7200 # Node ID e9e38ae8037f6aa64b61f27c13a2052cb954dda4 # Parent 2582d09d2ec4241d25b70138a3797fb1a1375fc1 mod_cloud_notify: Advertise feature on bare jid disco (thanks iNPUTmice) diff -r 2582d09d2ec4 -r e9e38ae8037f mod_cloud_notify/mod_cloud_notify.lua --- a/mod_cloud_notify/mod_cloud_notify.lua Fri Jun 03 15:28:38 2016 +0200 +++ b/mod_cloud_notify/mod_cloud_notify.lua Mon Jun 06 15:25:29 2016 +0200 @@ -18,7 +18,9 @@ local push_enabled = module:shared("push-enabled-users"); -- http://xmpp.org/extensions/xep-0357.html#disco -module:add_feature(xmlns_push); +module:hook("account-disco-info", function(event) + (event.reply or event.stanza):tag("feature", {var=xmlns_push}):up(); +end); -- http://xmpp.org/extensions/xep-0357.html#enabling module:hook("iq-set/self/"..xmlns_push..":enable", function (event)