mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix bug handling Reason in gen_fsm:terminate
SVN Revision: 2950
This commit is contained in:
parent
34234b4a46
commit
db3f8487fc
@ -734,7 +734,7 @@ terminate(Reason, _StateName, StateData) ->
|
||||
ReasonT = case Reason of
|
||||
shutdown -> "You are being removed from the room because"
|
||||
" of a system shutdown";
|
||||
_ -> atom_to_list(Reason)
|
||||
_ -> "Room terminates"
|
||||
end,
|
||||
ItemAttrs = [{"affiliation", "none"}, {"role", "none"}],
|
||||
ReasonEl = {xmlelement, "reason", [], [{xmlcdata, ReasonT}]},
|
||||
|
Loading…
Reference in New Issue
Block a user