瀏覽代碼

Fix !help <command>

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
b2a3cedd9f
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      earwigbot/commands/help.py

+ 2
- 1
earwigbot/commands/help.py 查看文件

@@ -58,7 +58,8 @@ class Command(BaseCommand):

# Create a dummy message to test which commands pick up the user's
# input:
dummy = Data(":foo!bar@example.com PRIVMSG #channel :msg!".split())
msg = ":foo!bar@example.com PRIVMSG #channel :msg".split()
dummy = Data(self.bot, msg)
dummy.command = command.lower()
dummy.is_command = True



Loading…
取消
儲存