24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02:00

Use #roster record instead of direct tuple

This commit is contained in:
Badlop 2011-07-13 17:06:17 +02:00
parent cc0aa707c4
commit 369fefd5a8

View File

@ -49,6 +49,7 @@
-include("ejabberd.hrl").
-include("jlib.hrl").
-include("mod_roster.hrl").
start(Host, Opts) ->
ejabberd_local:refresh_iq_handlers(),
@ -327,7 +328,7 @@ get_sm_items(empty, From, To, _Node, _Lang) ->
end.
is_presence_subscribed(#jid{luser=User, lserver=Server}, #jid{luser=LUser, lserver=LServer}) ->
lists:any(fun({roster, _, _, {TUser, TServer, _}, _, S, _, _, _, _}) ->
lists:any(fun(#roster{jid = {TUser, TServer, _}, subscription = S}) ->
if
LUser == TUser, LServer == TServer, S/=none ->
true;