Browse Source

[commands] Don't skip whitespace if the command trigger is found.

pull/77/head
Rapptz 9 years ago
parent
commit
8c6eeeed5f
  1. 2
      discord/ext/commands/bot.py

2
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

Loading…
Cancel
Save