cleanup in fcc module

master
mutantmonkey 2011-12-26 22:16:16 -05:00
parent 3adb930db8
commit 2db37270a7
1 changed files with 18 additions and 15 deletions

View File

@ -12,6 +12,9 @@ def fcc(phenny, input):
""".fcc <callsign> - Look up a callsign issued by the FCC."""
callsign = input.group(2)
if not callsign:
phenny.say(".fcc <callsign> - Look up a callsign issued by the FCC.")
return
try:
req = web.get("http://callook.info/{0}/json".format(web.quote(callsign)))