mod_admin_telnet: config:get: Assume the global section if only one argument is given

remotes/origin/master
Kim Alvefur 7 years ago
parent 11b2a79872
commit 5fb717bbce
  1. 3
      plugins/mod_admin_telnet.lua

@ -496,6 +496,9 @@ function def_env.config:load(filename, format)
end
function def_env.config:get(host, key)
if key == nil then
host, key = "*", host;
end
local config_get = require "core.configmanager".get
return true, tostring(config_get(host, key));
end

Loading…
Cancel
Save