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:
parent
2ef06678c0
commit
7aa48e265a
@ -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) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user