From 331538e734cd55dfe06ee647f74d519dbc65266a Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Sun, 29 Apr 2018 20:57:00 +0200 Subject: Critical fix: python parsing broken with previous merge. This should fix it, logical fuckup on my account. --- bot/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/__init__.py b/bot/__init__.py index 429c01829..4d78b238c 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -123,9 +123,9 @@ def _get_word(self) -> str: buffer_pos += 2 parsed_result = self.buffer[self.previous:self.index + (buffer_pos+2)] self.index += 2 - args = '' + return parsed_result - if current == "(" and next_char: + elif current == "(" and next_char: # Parse the args log.trace(f"Parsing command with ast.literal_eval. args are {tempbuffer[self.index:]}") -- cgit v1.2.3