Made sure there can't be an unpack tuple of improper size or empty blocks in the config file.

This commit is contained in:
Jeremy Fincher 2003-03-28 02:09:19 +00:00
parent 39afa87a27
commit a4ae47d7b8

View File

@ -111,7 +111,7 @@ def processConfigFile(filename):
irc.addCallback(Class())
world.startup = True
lines = m.get_payload().splitlines()
(startup, after376) = tuple(itersplit(lines, lambda s: not s))
(startup, after376) = filter(None,itersplit(lines,lambda s: not s))[:2]
#debug.printf('startup: %r' % startup)
#debug.printf('after376: %r' % after376)
for line in filter(None, startup):