aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-03 22:39:48 +0200
committerKim Alvefur <zash@zash.se>2020-04-03 22:39:48 +0200
commit7fe0b14aa78dda39d3b47adc40655b6e805b141b (patch)
tree1e2edc7a500070ec6e76db88cc09af280d3e0588 /plugins
parentd4c500cb06a9f7669cd33f86c8ea1753c74fe514 (diff)
parente692604f31230e991f7ac1194c434ef237aae3f6 (diff)
downloadprosody-7fe0b14aa78dda39d3b47adc40655b6e805b141b.tar.gz
prosody-7fe0b14aa78dda39d3b47adc40655b6e805b141b.zip
Merge 0.11->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_vcard4.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_vcard4.lua b/plugins/mod_vcard4.lua
index 378c0602..04dbca9e 100644
--- a/plugins/mod_vcard4.lua
+++ b/plugins/mod_vcard4.lua
@@ -14,9 +14,9 @@ module:hook("iq-get/bare/urn:ietf:params:xml:ns:vcard-4.0:vcard", function (even
local ok, id, item = pep_service:get_last_item("urn:xmpp:vcard4", stanza.attr.from);
if ok and item then
origin.send(st.reply(stanza):add_child(item.tags[1]));
- elseif item == "item-not-found" or not id then
+ elseif id == "item-not-found" or not id then
origin.send(st.error_reply(stanza, "cancel", "item-not-found"));
- elseif item == "forbidden" then
+ elseif id == "forbidden" then
origin.send(st.error_reply(stanza, "auth", "forbidden"));
else
origin.send(st.error_reply(stanza, "modify", "undefined-condition"));