Implement defaults

This commit is contained in:
Mark Veidemanis 2017-11-25 19:20:23 +00:00
parent 2ef3782c6d
commit d1fbbe0e2a
2 changed files with 8 additions and 3 deletions

View File

@ -7,6 +7,11 @@
"UsePassword": true, "UsePassword": true,
"ConnectOnCreate": false, "ConnectOnCreate": false,
"Password": "s", "Password": "s",
"Default": {
"password": null,
"username": null,
"authtype": null,
},
"Keywords": [], "Keywords": [],
"Master": [] "Master": []
} }

View File

@ -583,14 +583,14 @@ class Helper(object):
"bind": None, "bind": None,
"timeout": 30, "timeout": 30,
"nickname": spl[5], "nickname": spl[5],
"username": None, "username": config["Default"]["username"],
"realname": None, "realname": None,
"userinfo": None, "userinfo": None,
"finger": None, "finger": None,
"version": None, "version": None,
"source": None, "source": None,
"authtype": None, "authtype": config["Default"]["authtype"],
"password": None, "password": config["Default"]["password"],
"authentity": "NickServ", "authentity": "NickServ",
"key": config["ListenerKey"], "key": config["ListenerKey"],
"certificate": config["ListenerCertificate"], "certificate": config["ListenerCertificate"],