Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/xmpp.c @ 1951:1a01a7ef4e43
Add support for XEP-0249 / Direct MUC Invitations (Myhailo Danylenko)
Patch merged from isbear's mcabber-experimental repository.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 14 Mar 2011 12:53:27 +0100 |
parents | 118524e9d7b6 |
children | 9f443617e96b |
comparison
equal
deleted
inserted
replaced
1950:aec86670047b | 1951:1a01a7ef4e43 |
---|---|
1293 | 1293 |
1294 if (from) { | 1294 if (from) { |
1295 x = lm_message_node_find_xmlns(m->node, NS_MUC_USER); | 1295 x = lm_message_node_find_xmlns(m->node, NS_MUC_USER); |
1296 if (x && !strcmp(x->name, "x")) | 1296 if (x && !strcmp(x->name, "x")) |
1297 got_muc_message(from, x); | 1297 got_muc_message(from, x); |
1298 | |
1299 x = lm_message_node_find_xmlns(m->node, NS_X_CONFERENCE); | |
1300 | |
1301 if (x && !strcmp(x->name, "x")) { | |
1302 const char *jid = lm_message_node_get_attribute(x, "jid"); | |
1303 if (jid) { | |
1304 const char *reason = lm_message_node_get_attribute(x, "reason"); | |
1305 const char *password = lm_message_node_get_attribute(x, "password"); | |
1306 // FIXME we shouldn't send decline stanzas in this case | |
1307 got_invite(from, jid, reason, password, FALSE); | |
1308 } | |
1309 } | |
1298 } | 1310 } |
1299 | 1311 |
1300 return LM_HANDLER_RESULT_REMOVE_MESSAGE; | 1312 return LM_HANDLER_RESULT_REMOVE_MESSAGE; |
1301 } | 1313 } |
1302 | 1314 |