From 6b552a1489d611a0b89d6949675caf826d6157de Mon Sep 17 00:00:00 2001 From: neersighted Date: Tue, 28 Feb 2012 07:14:08 +0800 Subject: [PATCH] Fixed whois --- plugins/whois.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/whois.py b/plugins/whois.py index 682a984..de37d44 100644 --- a/plugins/whois.py +++ b/plugins/whois.py @@ -12,27 +12,27 @@ def whois(inp, say=None): try: domain_name = w.domain_name[0] except IndexError, e: - domain_name: "none." + domain_name="none." try: expiration_date = w.expiration_date[0] except IndexError, e: - expiration_date: "none." + expiration_date="none." try: creation_date = w.creation_date[0] except IndexError, e: - creation_date: "none." + creation_date="none." try: registrant_email = w.emails[0] except: - registrant_email: "none." + registrant_email="none." try: administrative_email = w.emails[1] except: - administrative_email: "none." + administrative_email="none." say('Domain recognised! %s was registered on \x02%s\x02 and will expire on \x02%s\x02' % (domain_name, creation_date, expiration_date)) say('Registrant email: %s Administrative email: %s' % (registrant_email, administrative_email))