mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
mod_muc_room: Include 110 status on shutdown
Add the 110 status code to the presence unavailable stanzas sent to room occupants on system shutdown.
This commit is contained in:
parent
0b1a6d7e79
commit
418718de31
@ -693,7 +693,7 @@ terminate(Reason, _StateName, StateData) ->
|
|||||||
sub_els = [#muc_user{items = [#muc_item{affiliation = none,
|
sub_els = [#muc_user{items = [#muc_item{affiliation = none,
|
||||||
reason = ReasonT,
|
reason = ReasonT,
|
||||||
role = none}],
|
role = none}],
|
||||||
status_codes = [332]}]},
|
status_codes = [332|110]}]},
|
||||||
(?DICT):fold(fun (LJID, Info, _) ->
|
(?DICT):fold(fun (LJID, Info, _) ->
|
||||||
Nick = Info#user.nick,
|
Nick = Info#user.nick,
|
||||||
case Reason of
|
case Reason of
|
||||||
|
Loading…
Reference in New Issue
Block a user