diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2020-07-08 15:57:55 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2020-07-08 15:57:55 +0000 |
commit | 32ceca68ef3fe274747344cfaabf04e0fff3e5b0 (patch) | |
tree | e70db761adfbdff39640e6161b896af6087eda5c /subreddit.py | |
parent | 7677d95c729ab88080d742461fcb3b07c8b421f7 (diff) | |
download | SmallYTChannelBot-32ceca68ef3fe274747344cfaabf04e0fff3e5b0.tar.gz SmallYTChannelBot-32ceca68ef3fe274747344cfaabf04e0fff3e5b0.zip |
added 'u/' to '/u/'
Diffstat (limited to 'subreddit.py')
-rwxr-xr-x | subreddit.py | 4 |
1 files changed, 2 insertions, 2 deletions
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:]) |