25
1
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:
Badlop 2010-02-02 11:14:48 +00:00
parent 34234b4a46
commit db3f8487fc

View File

@ -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}]},