25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Fix bug handling Reason in gen_fsm:terminate

SVN Revision: 2951
This commit is contained in:
Badlop 2010-02-02 11:15:44 +00:00
parent 7cd5a04087
commit f5e6c9a2a3

View File

@ -757,7 +757,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,
ReasonEl = #xmlel{name = 'reason', children = [#xmlcdata{cdata = ReasonT}]},
ItemAttrs = [?XMLATTR('affiliation', <<"none">>),