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
1 changed files with 1 additions and 1 deletions

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