Changeset

6796:87ec4e783ebd

mod_admin_adhoc: Declare local variable, don't set a global [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 26 Aug 2015 13:08:51 +0200
parents 6795:c4ee38d78594
children 6798:8b4c8e957211
files plugins/mod_admin_adhoc.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_adhoc.lua	Wed Aug 26 13:08:10 2015 +0200
+++ b/plugins/mod_admin_adhoc.lua	Wed Aug 26 13:08:51 2015 +0200
@@ -614,6 +614,7 @@
 end);
 
 local function send_to_online(message, server)
+	local sessions;
 	if server then
 		sessions = { [server] = hosts[server] };
 	else