Diff

plugins/muc/mod_muc.lua @ 9049:5870a0a6d4b6

MUC: Rename variable for consistency with other code that uses the term 'live'
author Matthew Wild <mwild1@gmail.com>
date Tue, 17 Jul 2018 10:01:19 +0100
parent 9048:c58be87e62d0
child 9050:f5c43e829d93
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Mon Jul 16 12:19:19 2018 +0200
+++ b/plugins/muc/mod_muc.lua	Tue Jul 17 10:01:19 2018 +0100
@@ -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 @@
 	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 ()