From 83e1d1b91b5b941dbd4e66df10ba1e30927d5bcb Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 23 Dec 2013 17:51:15 +0100 Subject: [PATCH] Fix previous commit. --- plugins/Aka/plugin.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/Aka/plugin.py b/plugins/Aka/plugin.py index 49eff885c..7a0895ee4 100644 --- a/plugins/Aka/plugin.py +++ b/plugins/Aka/plugin.py @@ -324,14 +324,10 @@ class Aka(callbacks.Plugin): args.pop(0) i -= 1 def everythingReplace(tokens): - ret = False - new_tokens = [] for (i, token) in enumerate(tokens): if isinstance(token, list): - (sub_ret, sub_tokens) = everythingReplace(token) - new_tokens.append(sub_tokens) - if sub_ret: - continue + if everythingReplace(token): + return if token == '$*': tokens[i:i+1] = args return True