From d466bef674496b137abd897cb05a72b03b0e9d57 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Thu, 13 Jan 2011 18:42:32 +0100 Subject: [PATCH 1/1] Cleaned up messy logic in pwn I think I understood what was going on and that the new logic is equivalent. --- pwnitter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnitter.py b/pwnitter.py index e8404c2..5a06ed2 100755 --- a/pwnitter.py +++ b/pwnitter.py @@ -160,8 +160,8 @@ class Pwnitter(dbus.service.Object): # We don't want to repeatedly spam people - # FIXME: What the fuck logic. Please clean up - if not ((not name and host != 'mobile.twitter.com') or name in processed): + # Also proceed if we didn't find a name but are on the mobile page + if not (name in processed) or ((not name) and host == 'mobile.twitter.com'): headers = { "User-Agent": "Mozilla/5.0", "Accept": "application/json, text/javascript, */*", -- 1.7.9.5