24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-07-21 00:19:53 +02:00

Fixed "To" variable in ejabberd_c2s:roster_change

This commit is contained in:
Alexey Shchepin 2010-12-03 16:39:04 +02:00
parent b3facf092a
commit 31e4ccf78b

View File

@ -2036,8 +2036,7 @@ roster_change(IJID, ISubscription, StateData) ->
P ->
?DEBUG("roster changed for ~p~n", [StateData#state.user]),
From = StateData#state.jid,
% To = jlib:make_jid(IJID)
To = IJID,
To = jlib:make_jid(IJID),
Cond1 = (not StateData#state.pres_invis) and IsFrom
and (not OldIsFrom),
Cond2 = (not IsFrom) and OldIsFrom