summaryrefslogtreecommitdiff
path: root/src/mod_vcard.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-04-27 12:33:56 +0200
committerBadlop <badlop@process-one.net>2010-04-27 12:33:56 +0200
commit1c00a9713d575fc505ef1e89ab76471985bb452a (patch)
treebccb8458a7e1456f19e159a30a4bd7f343eda588 /src/mod_vcard.erl
parentNo need to handle IQ requests other than Get and Set (diff)
Automatic vcard avatar addition in presence (thanks to Igor Goryachev)(EJAB-208)
Diffstat (limited to 'src/mod_vcard.erl')
-rw-r--r--src/mod_vcard.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_vcard.erl b/src/mod_vcard.erl
index 4384087f..3cdd3cff 100644
--- a/src/mod_vcard.erl
+++ b/src/mod_vcard.erl
@@ -267,7 +267,8 @@ set_vcard(User, LServer, VCARD) ->
orgunit = OrgUnit, lorgunit = LOrgUnit
})
end,
- mnesia:transaction(F)
+ mnesia:transaction(F),
+ ejabberd_hooks:run(vcard_set, LServer, [LUser, LServer, VCARD])
end.
-define(TLFIELD(Type, Label, Var),