瀏覽代碼

in AFCStatus, use 'if x.y and x.z in [a, b, c]' instead of 'if x.y and (x.z == a or x.z == b or x.z ==c)'

tags/v0.1^2
Ben Kurtovic 13 年之前
父節點
當前提交
21e87d9d3c
共有 1 個檔案被更改,包括 1 行新增3 行删除
  1. +1
    -3
      irc/commands/afc_status.py

+ 1
- 3
irc/commands/afc_status.py 查看文件

@@ -16,9 +16,7 @@ class AFCStatus(BaseCommand):
return "Get the number of pending AfC submissions, open redirect requests, and open file upload requests."

def check(self, data):
if data.is_command and (data.command == "status" or
data.command == "count" or data.command == "num" or
data.command == "number" or data.command == "afc_status"):
if data.is_command and data.command in ["status", "count", "num", "number", "afc_status"]:
return True
try:
if data.line[1] == "JOIN" and data.chan == "#wikipedia-en-afc":


Loading…
取消
儲存