Diff

plugins/mod_admin_telnet.lua @ 9754:cbbc6fefd07d

mod_admin_telnet: config:get: Assume the global section if only one argument is given
author Kim Alvefur <zash@zash.se>
date Fri, 04 Jan 2019 13:39:13 +0100
parent 9753:3a14815f5430
child 9755:fd4d516556aa
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua	Fri Jan 04 13:38:30 2019 +0100
+++ b/plugins/mod_admin_telnet.lua	Fri Jan 04 13:39:13 2019 +0100
@@ -496,6 +496,9 @@
 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