mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
conf: remove checks for 'channels' in server: blocks
This key is no longer mandatory as of ceed9346c0
.
This commit is contained in:
parent
8af4b0c06d
commit
5a363c22af
3
conf.py
3
conf.py
@ -23,9 +23,6 @@ def validateConf(conf):
|
|||||||
'sid', 'sidrange', 'protocol', 'maxnicklen'):
|
'sid', 'sidrange', 'protocol', 'maxnicklen'):
|
||||||
assert serverblock.get(section), "Missing %r in server block for %r." % (section, netname)
|
assert serverblock.get(section), "Missing %r in server block for %r." % (section, netname)
|
||||||
|
|
||||||
assert type(serverblock.get('channels')) == list, "'channels' option in " \
|
|
||||||
"server block for %s must be a list, not %s." % (netname, type(serverblock['channels']).__name__)
|
|
||||||
|
|
||||||
assert type(conf['login'].get('password')) == type(conf['login'].get('user')) == str and \
|
assert type(conf['login'].get('password')) == type(conf['login'].get('user')) == str and \
|
||||||
conf['login']['password'] != "changeme", "You have not set the login details correctly!"
|
conf['login']['password'] != "changeme", "You have not set the login details correctly!"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user