24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-20 22:22:09 +02: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">>),