25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +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("ejabberd.hrl").
-include("jlib.hrl"). -include("jlib.hrl").
-record(vcard_xupdate, {us, hash}).
%%==================================================================== %%====================================================================
%% gen_mod callbacks %% gen_mod callbacks
%%==================================================================== %%====================================================================
start(Host, _Opts) -> start(Host, _Opts) ->
mnesia:create_table(vcard_xupdate,
[{disc_copies, [node()]},
{attributes, record_info(fields, vcard_xupdate)}]),
ejabberd_hooks:add(c2s_update_presence, Host, ejabberd_hooks:add(c2s_update_presence, Host,
?MODULE, update_presence, 100), ?MODULE, update_presence, 100),
ejabberd_hooks:add(vcard_set, Host, ejabberd_hooks:add(vcard_set, Host,
@ -68,7 +63,7 @@ vcard_set(LUser, LServer, VCARD) ->
ejabberd_sm:force_update_presence(US). ejabberd_sm:force_update_presence(US).
%%==================================================================== %%====================================================================
%% Mnesia storage %% ODBC storage
%%==================================================================== %%====================================================================
add_xupdate(LUser, LServer, Hash) -> add_xupdate(LUser, LServer, Hash) ->