mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +01:00
Made sure there can't be an unpack tuple of improper size or empty blocks in the config file.
This commit is contained in:
parent
39afa87a27
commit
a4ae47d7b8
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user