From 32ceca68ef3fe274747344cfaabf04e0fff3e5b0 Mon Sep 17 00:00:00 2001 From: jwansek Date: Wed, 8 Jul 2020 15:57:55 +0000 Subject: added 'u/' to '/u/' --- subreddit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subreddit.py') diff --git a/subreddit.py b/subreddit.py index 205995b..74bc2b8 100755 --- a/subreddit.py +++ b/subreddit.py @@ -211,7 +211,7 @@ def handle_givelambda(comment): def handle_takelambda(comment): try: splitted = comment.body.split() - user = splitted[1].replace("/u/", "") + user = splitted[1].replace("/u/", "").replace("u/", "") toremove = int(splitted[2].replace("\\", "")) reason = " ".join(splitted[3:]) @@ -228,7 +228,7 @@ def handle_takelambda(comment): def handle_refundlambda(comment): try: splitted = comment.body.split() - user = splitted[1].replace("/u/", "") + user = splitted[1].replace("/u/", "").replace("u/", "") toadd = int(splitted[2].replace("\\", "")) reason = " ".join(splitted[3:]) -- cgit v1.2.3