Fulfill half of an IRC feature request by zookeeper.

This commit is contained in:
Eric S. Raymond 2007-09-10 22:16:13 +00:00
parent 2350df2e09
commit 833dc54ca2

View file

@ -648,6 +648,7 @@ def hack_syntax(filename, lines):
modcount += 1
# Insert attacks where they belong
female_attacks = filter(lambda a: a.female, animations)
female_attacks.reverse()
if female_attacks:
female_end = -1
for i in range(len(lines)):
@ -658,6 +659,7 @@ def hack_syntax(filename, lines):
female_wml = "".join(map(lambda x: x.wml, female_attacks))
lines = lines[:female_end] + [female_wml] + lines[female_end:]
male_attacks = filter(lambda a: not a.female, animations)
male_attacks.reverse()
if male_attacks:
male_end = -1
for i in range(len(lines)):