diff options
author | 2018-04-29 20:57:00 +0200 | |
---|---|---|
committer | 2018-04-29 20:57:00 +0200 | |
commit | 331538e734cd55dfe06ee647f74d519dbc65266a (patch) | |
tree | 8661dc8a1aac8026f0995de7c091ba6d54aeacb2 | |
parent | Python parser cleanup (#62) (diff) |
Critical fix: python parsing broken with previous merge. This should fix it, logical fuckup on my account.
-rw-r--r-- | bot/__init__.py | 4 |
1 files 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:]}") |