From 587c3bb87c5de8c9e85a873ae77ac17ad8129940 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 23 Nov 2017 18:39:08 +0000 Subject: [PATCH] Implement reloading the configuration at runtime --- help.json | 3 ++- threshold | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/help.json b/help.json index 984b16b..a470e49 100644 --- a/help.json +++ b/help.json @@ -2,5 +2,6 @@ "pass": "pass [password]", "logout": "logout", "connect": "connect [name] [address] [port] [ssl|plain] [nickname]", - "list": "list" + "list": "list", + "rehash": "rehash" } diff --git a/threshold b/threshold index b8569af..19c24ef 100755 --- a/threshold +++ b/threshold @@ -150,6 +150,11 @@ class Helper(object): info("\n".join(helpMap)) return + elif cmd == "rehash": + global config + config = helper.getConfig() + success("Configuration rehashed successfully") + elif cmd == "pass": info("You are already authenticated") return