projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util.httpstream: Removed unused variables.
[prosody.git]
/
plugins
/
mod_vcard.lua
diff --git
a/plugins/mod_vcard.lua
b/plugins/mod_vcard.lua
index 0efc16383b87b1686d8bd4f8aa57e952229a916f..e2f1dfb84cca78c504fdf1c3b39b1375c2e623f7 100644
(file)
--- a/
plugins/mod_vcard.lua
+++ b/
plugins/mod_vcard.lua
@@
-1,6
+1,6
@@
-- Prosody IM
-- Prosody IM
--- Copyright (C) 2008-20
09
Matthew Wild
--- Copyright (C) 2008-20
09
Waqas Hussain
+-- Copyright (C) 2008-20
10
Matthew Wild
+-- Copyright (C) 2008-20
10
Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
@@
-51,7
+51,7
@@
if module:get_option("vcard_compatibility") then
module:hook("iq/full", function(data)
local stanza = data.stanza;
local payload = stanza.tags[1];
module:hook("iq/full", function(data)
local stanza = data.stanza;
local payload = stanza.tags[1];
- if stanza.attr.type == "get"
or stanza.attr.type == "set"
and payload.name == "vCard" and payload.attr.xmlns == "vcard-temp" then
+ if stanza.attr.type == "get" and payload.name == "vCard" and payload.attr.xmlns == "vcard-temp" then
return handle_vcard(data);
end
end, 1);
return handle_vcard(data);
end
end, 1);