From 17a29f515887a503474461ec942422175a63084f Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 18 Oct 2009 06:55:00 +0500 Subject: mod_vcard: Fixed traceback on attempt to set vcards by non-c2s sessions. --- plugins/mod_vcard.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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 -- cgit v1.2.3