3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-26 04:32:51 +01:00

games: Fix help prefix stripper

This commit is contained in:
Daniel Oaks 2016-04-08 14:24:53 +10:00 committed by James Lu
parent f1b0981f87
commit c5242d1590

View File

@ -176,7 +176,7 @@ class CommandHandler:
cmd = command.args.strip().split(' ', 1)[0].casefold() cmd = command.args.strip().split(' ', 1)[0].casefold()
if cmd.startswith(self.public_command_prefix): if cmd.startswith(self.public_command_prefix):
cmd = cmd[len(self.public_command_prefix) - 1:] cmd = cmd[len(self.public_command_prefix):]
handler = self.commands.get(cmd) handler = self.commands.get(cmd)
if handler: if handler: