Mercurial > prosody-hg
comparison plugins/mod_pep.lua @ 1696:2afc87ccc379
mod_pep: Added name 'Prosody' to the pubsub/pep identity
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Tue, 18 Aug 2009 12:33:43 +0500 |
| parents | b6645fe7d89f |
| children | 8cf9b978ab36 |
comparison
equal
deleted
inserted
replaced
| 1695:9786e650393b | 1696:2afc87ccc379 |
|---|---|
| 23 local NULL = {}; | 23 local NULL = {}; |
| 24 local data = {}; | 24 local data = {}; |
| 25 local recipients = {}; | 25 local recipients = {}; |
| 26 local hash_map = {}; | 26 local hash_map = {}; |
| 27 | 27 |
| 28 module:add_identity("pubsub", "pep"); | 28 module:add_identity("pubsub", "pep", "Prosody"); |
| 29 module:add_feature("http://jabber.org/protocol/pubsub#publish"); | 29 module:add_feature("http://jabber.org/protocol/pubsub#publish"); |
| 30 | 30 |
| 31 local function publish(session, node, item) | 31 local function publish(session, node, item) |
| 32 local disable = #item.tags ~= 1 or #item.tags[1].tags == 0; | 32 local disable = #item.tags ~= 1 or #item.tags[1].tags == 0; |
| 33 if #item.tags == 0 then item.name = "retract"; end | 33 if #item.tags == 0 then item.name = "retract"; end |
