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

Send Unavailable Presence stanza when an occupant is kicked or banned (EJAB-1350)

This commit is contained in:
Badlop 2010-11-22 21:16:34 +01:00
parent 2ef06678c0
commit 7aa48e265a

View File

@ -2726,8 +2726,7 @@ can_change_ra(_FAffiliation, _FRole,
send_kickban_presence(JID, Reason, Code, StateData) -> send_kickban_presence(JID, Reason, Code, StateData) ->
{N,D,R} = JID, NewAffiliation = get_affiliation(JID, StateData),
NewAffiliation = get_affiliation(exmpp_jid:make(N,D,R), StateData),
send_kickban_presence(JID, Reason, Code, NewAffiliation, StateData). send_kickban_presence(JID, Reason, Code, NewAffiliation, StateData).
send_kickban_presence(JID, Reason, Code, NewAffiliation, StateData) -> send_kickban_presence(JID, Reason, Code, NewAffiliation, StateData) ->