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,
"ConnectOnCreate": false,
"Password": "s",
"Default": {
"password": null,
"username": null,
"authtype": null,
},
"Keywords": [],
"Master": []
}

View File

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