mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
don't error when iq set comes without item
This commit is contained in:
parent
c5325aedaf
commit
349a7e92e3
3 changed files with 47 additions and 29 deletions
|
@ -732,7 +732,14 @@ iq(XMLNode node) {
|
|||
break;
|
||||
case "set":
|
||||
helper = helper["/item"];
|
||||
if (helper && helper["@subscription"] == "remove") {
|
||||
if (!mappingp(helper)) {
|
||||
P1(("no item in iq set %O from %O in %O\n",
|
||||
node, previous_object(), ME))
|
||||
// FIXME: what is the correct behaviour
|
||||
// in this case?
|
||||
return;
|
||||
}
|
||||
if (helper["@subscription"] == "remove") {
|
||||
string buddy = jid2ppl(helper["@jid"]);
|
||||
#ifndef _flag_disable_module_friendship
|
||||
P2(("remove %O from roster\n", helper["@jid"]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue