diff options
| author | 2018-12-22 01:01:25 +0000 | |
|---|---|---|
| committer | 2018-12-22 01:01:25 +0000 | |
| commit | ae5eb9fc47db5e180da61d3e2132e1a7436c41ab (patch) | |
| tree | 9d10b282314e50124c2b1830adace1f79d91622e /modules/commands.py | |
| parent | Add basics of a command alias system (diff) | |
| signature | ||
.partition returns a tuple of 3 (commands.py)
Diffstat (limited to 'modules/commands.py')
| -rw-r--r-- | modules/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
