aboutsummaryrefslogtreecommitdiff
path: root/src/mod_muc.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-01-23 13:51:05 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-01-23 13:51:05 +0300
commit435e5e62634b542c2a42673bea7f81e9cc2a5c04 (patch)
treeb927d972c426ca5ea4ce20343e4eb981848934e8 /src/mod_muc.erl
parentMake a message is not bounced if it's archived (diff)
Make test suite working again
Diffstat (limited to 'src/mod_muc.erl')
-rw-r--r--src/mod_muc.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_muc.erl b/src/mod_muc.erl
index a91fcc810..1fe68ebd8 100644
--- a/src/mod_muc.erl
+++ b/src/mod_muc.erl
@@ -135,12 +135,12 @@ shutdown_rooms(Host) ->
MyHost = gen_mod:get_module_opt_host(Host, mod_muc,
<<"conference.@HOST@">>),
Rooms = RMod:get_online_rooms(MyHost, undefined),
- lists:filter(
+ lists:flatmap(
fun({_, _, Pid}) when node(Pid) == node() ->
Pid ! shutdown,
- true;
+ [Pid];
(_) ->
- false
+ []
end, Rooms).
%% This function is called by a room in three situations: