From db3f8487fca68b99e78a4062c482eb000ab6300f Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 2 Feb 2010 11:14:48 +0000 Subject: [PATCH] Fix bug handling Reason in gen_fsm:terminate SVN Revision: 2950 --- src/mod_muc/mod_muc_room.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index 2b4ba9410..3ceda26dc 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -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}]},