瀏覽代碼

drn_clerkbot: Fix if username starts with 'User:'

pull/15/head
Ben Kurtovic 11 年之前
父節點
當前提交
299c392344
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      tasks/drn_clerkbot.py

+ 2
- 0
tasks/drn_clerkbot.py 查看文件

@@ -497,6 +497,8 @@ class DRNClerkBot(Task):
user = re.search("[:*#]{,5} \{\{User\|(.*?)\}\}", line)
if user:
party = user.group(1).replace("_", " ").strip()
if party.startswith("User:"):
party = party[len("User:"):]
if party:
party = party[0].upper() + party[1:]
if party == case.file_user:


Loading…
取消
儲存