From 97def8fc563e96071ac3cf34787cc8af725738ea Mon Sep 17 00:00:00 2001 From: Jeppe Toustrup Date: Fri, 27 Feb 2015 07:53:11 +0100 Subject: [PATCH] Be sure to always include nick of person replied to with repall even if it's the user --- rainbowstream/rainbow.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 8dbd89c..9aa5d44 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -532,10 +532,9 @@ def reply_all(): text = original_tweet['text'] nick_ary = [original_tweet['user']['screen_name']] for user in tweet['entities']['user_mentions']: - if user['screen_name'] not in nick_ary: + if user['screen_name'] not in nick_ary \ + and user['screen_name'] != g['original_name']: nick_ary.append(user['screen_name']) - if g['original_name'] in nick_ary: - nick_ary.remove(g['original_name']) status = ' '.join(g['stuff'].split()[1:]) status = ' '.join(['@' + nick for nick in nick_ary]) + ' ' + str2u(status) t.statuses.update(status=status, in_reply_to_status_id=tid) -- 2.25.1