.partition returns a tuple of 3 (commands.py)

This commit is contained in:
jesopo 2018-12-22 01:01:25 +00:00
parent 498c1d647e
commit ae5eb9fc47

View file

@ -130,7 +130,7 @@ class Module(ModuleManager.BaseModule):
if not self.has_command(command):
aliases = self._get_aliases(event["server"])
if command.lower() in aliases:
command, new_args = aliases[command.lower()].partition(" ")
command, _, new_args = aliases[command.lower()].partition(" ")
for match in REGEX_ARG_NUMBER.finditer(new_args):
index = int(match.group(1))
if index >= len(args_split):