Comparison

plugins/mod_pep.lua @ 11376:774811e2c6ab 0.11 0.11.8

mod_pep: Advertise base pubsub feature (fixes #1632) Noticed while discussing feature discovery in Gajim Thanks lovetox
author Kim Alvefur <zash@zash.se>
date Mon, 15 Feb 2021 16:29:13 +0100
parent 10672:657e61531b33
child 11378:b790df8f9448
child 11566:6e67872bcba4
comparison
equal deleted inserted replaced
11306:5798ab735619 11376:774811e2c6ab
415 "last-published", 415 "last-published",
416 "presence-notifications", 416 "presence-notifications",
417 "presence-subscribe", 417 "presence-subscribe",
418 }; 418 };
419 419
420 reply:tag('feature', {var=xmlns_pubsub}):up();
420 for feature in supported_features do 421 for feature in supported_features do
421 reply:tag('feature', {var=xmlns_pubsub.."#"..feature}):up(); 422 reply:tag('feature', {var=xmlns_pubsub.."#"..feature}):up();
422 end 423 end
423 end); 424 end);
424 425