Software /
code /
verse
Comparison
plugins/vcard.lua @ 250:a5ac643a7fd6
added local verse var to all plugins
author | mva <mva@mva.name> |
---|---|
date | Fri, 02 Dec 2011 11:02:02 +0600 |
parent | 228:c5a4f82e2fd6 |
child | 312:f374daa3db4d |
comparison
equal
deleted
inserted
replaced
249:00891a675634 | 250:a5ac643a7fd6 |
---|---|
1 local verse = require "verse"; | |
2 local vcard = require "util.vcard"; | |
3 | |
1 local xmlns_vcard = "vcard-temp"; | 4 local xmlns_vcard = "vcard-temp"; |
2 local vcard = require "util.vcard"; | |
3 | 5 |
4 function verse.plugins.vcard(stream) | 6 function verse.plugins.vcard(stream) |
5 function stream:get_vcard(jid, callback) --jid = nil for self | 7 function stream:get_vcard(jid, callback) --jid = nil for self |
6 stream:send_iq(verse.iq({to = jid, type="get"}) | 8 stream:send_iq(verse.iq({to = jid, type="get"}) |
7 :tag("vCard", {xmlns=xmlns_vcard}), callback and function(stanza) | 9 :tag("vCard", {xmlns=xmlns_vcard}), callback and function(stanza) |