3
0
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:
James Lu 2016-06-25 14:25:00 -07:00
parent 8af4b0c06d
commit 5a363c22af

View File

@ -23,9 +23,6 @@ def validateConf(conf):
'sid', 'sidrange', 'protocol', 'maxnicklen'):
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 \
conf['login']['password'] != "changeme", "You have not set the login details correctly!"