diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-10-18 06:55:00 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-10-18 06:55:00 +0500 |
commit | 17a29f515887a503474461ec942422175a63084f (patch) | |
tree | 8a150f396fd2cccb05c20e4aed5192612b1e69e0 /plugins | |
parent | d7cf9140db480973f43e69314dbe888cfbfd5ca8 (diff) | |
download | prosody-17a29f515887a503474461ec942422175a63084f.tar.gz prosody-17a29f515887a503474461ec942422175a63084f.zip |
mod_vcard: Fixed traceback on attempt to set vcards by non-c2s sessions.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_vcard.lua | 2 |
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 |