aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_vcard.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_vcard.lua b/plugins/mod_vcard.lua
index e2016c97..c84095e8 100644
--- a/plugins/mod_vcard.lua
+++ b/plugins/mod_vcard.lua
@@ -40,7 +40,7 @@ function handle_vcard(session, stanza)
session.send(st.error_reply(stanza, "cancel", "item-not-found"));
end
elseif stanza.attr.type == "set" then
- if not to or to == session.username.."@"..session.host then
+ if not to then
if datamanager.store(session.username, session.host, "vcard", st.preserialize(stanza.tags[1])) then
session.send(st.reply(stanza));
else