From 299c392344bf2a5185aca6ba3d806784ff674ed6 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 18 Jan 2014 19:43:01 -0500 Subject: [PATCH] drn_clerkbot: Fix if username starts with 'User:' --- tasks/drn_clerkbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/drn_clerkbot.py b/tasks/drn_clerkbot.py index 6de93a4..1df00b1 100644 --- a/tasks/drn_clerkbot.py +++ b/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: