Software / code / prosody
Comparison
plugins/mod_pep_plus.lua @ 8342:0c0990a575de
mod_pep_plus: Fix a typo.
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Wed, 18 Oct 2017 11:43:07 +0100 |
| parent | 8341:910d3c3f60a6 |
| child | 8377:58cdbbe3b86a |
comparison
equal
deleted
inserted
replaced
| 8341:910d3c3f60a6 | 8342:0c0990a575de |
|---|---|
| 414 reply:tag('identity', {category='pubsub', type='pep'}):up(); | 414 reply:tag('identity', {category='pubsub', type='pep'}):up(); |
| 415 | 415 |
| 416 local username = jid_split(reply.attr.from) or origin.username; | 416 local username = jid_split(reply.attr.from) or origin.username; |
| 417 local service = get_pep_service(username); | 417 local service = get_pep_service(username); |
| 418 | 418 |
| 419 local suppored_features = lib_pubsub.get_feature_set(service) + set.new{ | 419 local supported_features = lib_pubsub.get_feature_set(service) + set.new{ |
| 420 -- Features not covered by the above | 420 -- Features not covered by the above |
| 421 "access-presence", | 421 "access-presence", |
| 422 "auto-subscribe", | 422 "auto-subscribe", |
| 423 "filtered-notifications", | 423 "filtered-notifications", |
| 424 "last-published", | 424 "last-published", |
| 425 "persistent-items", | 425 "persistent-items", |
| 426 "presence-notifications", | 426 "presence-notifications", |
| 427 "presence-subscribe", | 427 "presence-subscribe", |
| 428 }; | 428 }; |
| 429 | 429 |
| 430 for feature in suppored_features do | 430 for feature in supported_features do |
| 431 reply:tag('feature', {var=xmlns_pubsub.."#"..feature}):up(); | 431 reply:tag('feature', {var=xmlns_pubsub.."#"..feature}):up(); |
| 432 end | 432 end |
| 433 end); | 433 end); |
| 434 | 434 |
| 435 module:hook("account-disco-items-node", function(event) | 435 module:hook("account-disco-items-node", function(event) |