aboutsummaryrefslogtreecommitdiff
path: root/modules/commands.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-12-22 01:01:25 +0000
committerGravatar jesopo2018-12-22 01:01:25 +0000
commitae5eb9fc47db5e180da61d3e2132e1a7436c41ab (patch)
tree9d10b282314e50124c2b1830adace1f79d91622e /modules/commands.py
parentAdd 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.py2
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):