From 8564fc69906e8479e9aa4fc7b205161a95fb5a4e Mon Sep 17 00:00:00 2001 From: moneromooo Date: Fri, 13 Mar 2015 20:11:43 +0000 Subject: [PATCH] reddit: fix missing comments is_root is a root *comment*, not the main post --- tipbot/modules/reddit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tipbot/modules/reddit.py b/tipbot/modules/reddit.py index 6b53a1c..4ad0728 100644 --- a/tipbot/modules/reddit.py +++ b/tipbot/modules/reddit.py @@ -142,8 +142,7 @@ class RedditNetwork(Network): else: # reddit special: +x as a reply means tip - # if is_root is not here, consider the item as a reply, but check parent_id - if not is_pm and (not hasattr(item,'is_root') or not item.is_root) and hasattr(item,'parent_id'): + if not is_pm and hasattr(item,'parent_id'): line=line.replace(self.keyword,'').strip() if re.match("\+[0-9]*\.[0-9]*",line): if self.on_command: