From 0c1796ea408c96555b0cffc26da91e70c34bbc51 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Mon, 5 Sep 2011 17:27:15 +1000 Subject: [PATCH] Fix potential case-clause crash --- 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 6ee609f15..9b7255dd5 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -1488,7 +1488,7 @@ remove_online_user(JID, StateData, Reason) -> ?DICT:erase(Nick, StateData#state.nicks); {ok, U} -> ?DICT:store(Nick, U -- [LJID], StateData#state.nicks); - false -> + error -> StateData#state.nicks end, StateData#state{users = Users, nicks = Nicks}.