mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Aka: Remove first elements of the 'args' list in a single pass.
This commit is contained in:
parent
d73de5e512
commit
5452d4194a
@ -468,9 +468,7 @@ class Aka(callbacks.Plugin):
|
|||||||
assert not biggestAt
|
assert not biggestAt
|
||||||
# Gotta remove the things that have already been subbed in.
|
# Gotta remove the things that have already been subbed in.
|
||||||
i = biggestDollar
|
i = biggestDollar
|
||||||
while i:
|
args[:] = args[i:]
|
||||||
args.pop(0)
|
|
||||||
i -= 1
|
|
||||||
def everythingReplace(tokens):
|
def everythingReplace(tokens):
|
||||||
for (i, token) in enumerate(tokens):
|
for (i, token) in enumerate(tokens):
|
||||||
if isinstance(token, list):
|
if isinstance(token, list):
|
||||||
|
Loading…
Reference in New Issue
Block a user