From 3462ae4c36f21bd683bb4531c5bc3b61e3eb7617 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 17 Jul 2018 10:01:19 +0100 Subject: MUC: Rename variable for consistency with other code that uses the term 'live' --- plugins/muc/mod_muc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index c4b69f41..066d1608 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -13,7 +13,7 @@ -- delete_room(room) -- forget_room(room) -- get_room_from_jid(jid) -> room --- each_room(local_only) -> () -> room +-- each_room(live_only) -> () -> room -- shutdown_component() if module:get_host_type() ~= "component" then @@ -249,8 +249,8 @@ function create_room(room_jid, config) return track_room(room); end -function each_room(local_only) - if local_only then +function each_room(live_only) + if live_only then return rooms:values(); end return coroutine.wrap(function () -- cgit v1.2.3