Comparison

plugins/mod_admin_adhoc.lua @ 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
parent 6795:c4ee38d78594
child 7044:8fcee3339463
comparison
equal deleted inserted replaced
6795:c4ee38d78594 6796:87ec4e783ebd
612 (#err_list > 0 and ("Failed to reload the module "..fields.module.." on the hosts:\n"..t_concat(err_list, "\n")) or ""); 612 (#err_list > 0 and ("Failed to reload the module "..fields.module.." on the hosts:\n"..t_concat(err_list, "\n")) or "");
613 return { status = "completed", info = info }; 613 return { status = "completed", info = info };
614 end); 614 end);
615 615
616 local function send_to_online(message, server) 616 local function send_to_online(message, server)
617 local sessions;
617 if server then 618 if server then
618 sessions = { [server] = hosts[server] }; 619 sessions = { [server] = hosts[server] };
619 else 620 else
620 sessions = hosts; 621 sessions = hosts;
621 end 622 end