mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Fix previous commit.
This commit is contained in:
parent
764c788aa6
commit
83e1d1b91b
@ -324,14 +324,10 @@ class Aka(callbacks.Plugin):
|
|||||||
args.pop(0)
|
args.pop(0)
|
||||||
i -= 1
|
i -= 1
|
||||||
def everythingReplace(tokens):
|
def everythingReplace(tokens):
|
||||||
ret = False
|
|
||||||
new_tokens = []
|
|
||||||
for (i, token) in enumerate(tokens):
|
for (i, token) in enumerate(tokens):
|
||||||
if isinstance(token, list):
|
if isinstance(token, list):
|
||||||
(sub_ret, sub_tokens) = everythingReplace(token)
|
if everythingReplace(token):
|
||||||
new_tokens.append(sub_tokens)
|
return
|
||||||
if sub_ret:
|
|
||||||
continue
|
|
||||||
if token == '$*':
|
if token == '$*':
|
||||||
tokens[i:i+1] = args
|
tokens[i:i+1] = args
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user