From 76a991f8423918b2e6e454979cf435846660cbf1 Mon Sep 17 00:00:00 2001 From: Andrei M Date: Wed, 28 Mar 2012 21:51:28 -0400 Subject: [PATCH] removed nickname requirement --- modules/linx.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/linx.py b/modules/linx.py index 3e1799f..07f2961 100644 --- a/modules/linx.py +++ b/modules/linx.py @@ -40,7 +40,10 @@ def lines(phenny, input): info = input.group(2).split(" ") - if len(info) == 1: + if len(info) == 0: + nickname = input.nick + date = "today" + elif len(info) == 1: nickname = info[0] date = "today" elif len(info) == 2: @@ -49,13 +52,13 @@ def lines(phenny, input): else: phenny.reply(".lines () - Returns the number of lines a user posted on a specific date.") return - else: - phenny.reply(".lines () - Returns the number of lines a user posted on a specific date.") - return + else: + nickname = input.nick + date = "today" try: - req = web.post("http://linx.li/vtluuglines", {'nickname': nickname, 'date': date}) + req = web.post("http://linx.li/vtluuglines", {'nickname': nickname, 'date': date, 'sender': input.nick}) except (HTTPError, IOError): phenny.reply("THE INTERNET IS FUCKING BROKEN. Please try again later.") return