From ae5eb9fc47db5e180da61d3e2132e1a7436c41ab Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 22 Dec 2018 01:01:25 +0000 Subject: .partition returns a tuple of 3 (commands.py) --- modules/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands.py') diff --git a/modules/commands.py b/modules/commands.py index acf5331f..25e6dfae 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -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): -- cgit v1.3.1-10-gc9f91