mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +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())
|
irc.addCallback(Class())
|
||||||
world.startup = True
|
world.startup = True
|
||||||
lines = m.get_payload().splitlines()
|
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('startup: %r' % startup)
|
||||||
#debug.printf('after376: %r' % after376)
|
#debug.printf('after376: %r' % after376)
|
||||||
for line in filter(None, startup):
|
for line in filter(None, startup):
|
||||||
|
Loading…
Reference in New Issue
Block a user