aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_vcard.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-10-18 06:55:00 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-10-18 06:55:00 +0500
commit17a29f515887a503474461ec942422175a63084f (patch)
tree8a150f396fd2cccb05c20e4aed5192612b1e69e0 /plugins/mod_vcard.lua
parentd7cf9140db480973f43e69314dbe888cfbfd5ca8 (diff)
downloadprosody-17a29f515887a503474461ec942422175a63084f.tar.gz
prosody-17a29f515887a503474461ec942422175a63084f.zip
mod_vcard: Fixed traceback on attempt to set vcards by non-c2s sessions.
Diffstat (limited to 'plugins/mod_vcard.lua')
-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