Software /
code /
verse
Comparison
plugins/disco.lua @ 180:58537eb98506
plugins.disco: Load the presence plugin
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 31 Dec 2010 02:17:39 +0100 |
parent | 179:5e2ff25c1dd9 |
child | 197:7e98cf2c1d8d |
comparison
equal
deleted
inserted
replaced
179:5e2ff25c1dd9 | 180:58537eb98506 |
---|---|
14 local xmlns_disco = "http://jabber.org/protocol/disco"; | 14 local xmlns_disco = "http://jabber.org/protocol/disco"; |
15 local xmlns_disco_info = xmlns_disco.."#info"; | 15 local xmlns_disco_info = xmlns_disco.."#info"; |
16 local xmlns_disco_items = xmlns_disco.."#items"; | 16 local xmlns_disco_items = xmlns_disco.."#items"; |
17 | 17 |
18 function verse.plugins.disco(stream) | 18 function verse.plugins.disco(stream) |
19 stream:add_plugin("presence"); | |
19 stream.disco = { cache = {}, info = {} } | 20 stream.disco = { cache = {}, info = {} } |
20 stream.disco.info.identities = { | 21 stream.disco.info.identities = { |
21 {category = 'client', type='pc', name='Verse'}, | 22 {category = 'client', type='pc', name='Verse'}, |
22 } | 23 } |
23 stream.disco.info.features = { | 24 stream.disco.info.features = { |