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:
parent
7cd5a04087
commit
f5e6c9a2a3
@ -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">>),
|
||||
|
Loading…
Reference in New Issue
Block a user