mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +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
|
||||
# Gotta remove the things that have already been subbed in.
|
||||
i = biggestDollar
|
||||
while i:
|
||||
args.pop(0)
|
||||
i -= 1
|
||||
args[:] = args[i:]
|
||||
def everythingReplace(tokens):
|
||||
for (i, token) in enumerate(tokens):
|
||||
if isinstance(token, list):
|
||||
|
Loading…
Reference in New Issue
Block a user