From 8c6eeeed5f437f586fbca8a4b24690a538f61508 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 6 Jan 2016 19:21:58 -0500 Subject: [PATCH] [commands] Don't skip whitespace if the command trigger is found. --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 35b1d1498..c602a204b 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -202,7 +202,6 @@ class Bot(GroupMixin, discord.Client): if not view.skip_string(prefix): return - view.skip_ws() invoker = view.get_word() tmp = { 'bot': self, @@ -212,6 +211,7 @@ class Bot(GroupMixin, discord.Client): } ctx = Context(**tmp) del tmp + if invoker in self.commands: command = self.commands[invoker] ctx.command = command