Implement reloading the configuration at runtime

This commit is contained in:
Mark Veidemanis 2017-11-23 18:39:08 +00:00
parent 79d1e2a86c
commit 587c3bb87c
2 changed files with 7 additions and 1 deletions

View File

@ -2,5 +2,6 @@
"pass": "pass [password]",
"logout": "logout",
"connect": "connect [name] [address] [port] [ssl|plain] [nickname]",
"list": "list"
"list": "list",
"rehash": "rehash"
}

View File

@ -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