Browse Source

drn_clerkbot: Fix if username starts with 'User:'

pull/15/head
Ben Kurtovic 11 years ago
parent
commit
299c392344
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      tasks/drn_clerkbot.py

+ 2
- 0
tasks/drn_clerkbot.py View File

@@ -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…
Cancel
Save