Software /
code /
prosody
Comparison
plugins/mod_vcard.lua @ 195:08753eafbf46
vcards for s2s
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 02 Nov 2008 01:20:42 +0000 |
parent | 184:6528845e8673 |
child | 307:8ff052a77cac |
comparison
equal
deleted
inserted
replaced
194:4ea1ec218976 | 195:08753eafbf46 |
---|---|
7 local t_concat, t_insert = table.concat, table.insert; | 7 local t_concat, t_insert = table.concat, table.insert; |
8 | 8 |
9 require "util.jid" | 9 require "util.jid" |
10 local jid_split = jid.split; | 10 local jid_split = jid.split; |
11 | 11 |
12 add_iq_handler("c2s", "vcard-temp", | 12 add_iq_handler({"c2s", "s2sin"}, "vcard-temp", |
13 function (session, stanza) | 13 function (session, stanza) |
14 if stanza.tags[1].name == "vCard" then | 14 if stanza.tags[1].name == "vCard" then |
15 local to = stanza.attr.to; | 15 local to = stanza.attr.to; |
16 if stanza.attr.type == "get" then | 16 if stanza.attr.type == "get" then |
17 local vCard; | 17 local vCard; |