25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

Fixed 2.1.6 compile error

This commit is contained in:
Eric Cestari 2011-01-07 16:00:10 +01:00
parent 92b6c12420
commit 5632901820

View File

@ -87,7 +87,7 @@ listed() ->
offline_message({jid, [], _, [], [], _, []}, _To, _Packet) ->
ok;
offline_message(From, To, Packet) ->
offline_message(From, _To, _Packet) ->
{User, Server, _} = jlib:jid_tolower(From),
Key = {User, Server},
{T1, T2, _} = now(),
@ -110,10 +110,10 @@ offline_message(From, To, Packet) ->
mnesia:dirty_write(Record),
ok.
filter_packet({From, To, {xmlelement, "message", _, _}}) ->
filter_packet({From, To, {xmlelement, "message", _, _}=Packet}) ->
{User, Server, _} = jlib:jid_tolower(From),
case mnesia:dirty_read({autofilter, {User, Server}}) of
[#autofilter{drop=true}] -> drop
[#autofilter{drop=true}] -> drop;
_ -> {From, To, Packet}
end;
filter_packet(OK) ->