hs: deal with blank queries

master
mutantmonkey 2011-04-24 21:58:28 -04:00
parent e9e555e101
commit d9c2d976e2
1 changed files with 3 additions and 2 deletions

View File

@ -17,14 +17,15 @@ def search(query):
if len(result) <= 0:
return False
print "wtf"
return result
def hs(phenny, input):
""".hs <pid/name/email> - Search for someone on Virginia Tech People Search."""
q = input.group(2)
if q is None:
return
q = q.strip()
# initially try search by PID
s = search('uupid=%s' % q)