Implement reloading the configuration at runtime
This commit is contained in:
parent
79d1e2a86c
commit
587c3bb87c
|
@ -2,5 +2,6 @@
|
||||||
"pass": "pass [password]",
|
"pass": "pass [password]",
|
||||||
"logout": "logout",
|
"logout": "logout",
|
||||||
"connect": "connect [name] [address] [port] [ssl|plain] [nickname]",
|
"connect": "connect [name] [address] [port] [ssl|plain] [nickname]",
|
||||||
"list": "list"
|
"list": "list",
|
||||||
|
"rehash": "rehash"
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,6 +150,11 @@ class Helper(object):
|
||||||
info("\n".join(helpMap))
|
info("\n".join(helpMap))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
elif cmd == "rehash":
|
||||||
|
global config
|
||||||
|
config = helper.getConfig()
|
||||||
|
success("Configuration rehashed successfully")
|
||||||
|
|
||||||
elif cmd == "pass":
|
elif cmd == "pass":
|
||||||
info("You are already authenticated")
|
info("You are already authenticated")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue