util.prosodyctl.shell: Bring back banner set from config!
authorKim Alvefur <zash@zash.se>
Fri, 12 Nov 2021 22:34:04 +0100
changeset 11906 98fd531594bd
parent 11905 26406ce35e20
child 11907 baf69f254753
util.prosodyctl.shell: Bring back banner set from config! I miss my custom ANSI-colored greeting!
util/prosodyctl/shell.lua
--- a/util/prosodyctl/shell.lua	Fri Nov 12 16:52:55 2021 +0100
+++ b/util/prosodyctl/shell.lua	Fri Nov 12 22:34:04 2021 +0100
@@ -45,6 +45,8 @@
 end
 
 local function printbanner()
+	local banner = config.get("*", "console_banner");
+	if banner then return print(banner); end
 	print([[
                      ____                \   /     _
                     |  _ \ _ __ ___  ___  _-_   __| |_   _