25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Remove useless mnesia call

This commit is contained in:
Evgeniy Khramtsov 2012-04-20 16:52:33 +10:00
parent 310aa7a00d
commit 31c13cc1c8

View File

@ -20,16 +20,11 @@
-include("ejabberd.hrl").
-include("jlib.hrl").
-record(vcard_xupdate, {us, hash}).
%%====================================================================
%% gen_mod callbacks
%%====================================================================
start(Host, _Opts) ->
mnesia:create_table(vcard_xupdate,
[{disc_copies, [node()]},
{attributes, record_info(fields, vcard_xupdate)}]),
ejabberd_hooks:add(c2s_update_presence, Host,
?MODULE, update_presence, 100),
ejabberd_hooks:add(vcard_set, Host,
@ -68,7 +63,7 @@ vcard_set(LUser, LServer, VCARD) ->
ejabberd_sm:force_update_presence(US).
%%====================================================================
%% Mnesia storage
%% ODBC storage
%%====================================================================
add_xupdate(LUser, LServer, Hash) ->