def prep_crew_of(args, bu, max_age=300):
if len(args) != 1: bu('crew-of takes one pirate name')
pi = PirateInfo(args[0], max_age)
+ if pi.crew is None: return None
return CrewInfo(pi.crew[0], max_age)
def do_crew_of(args, bu):
pi = pa.pirate_info()
xs = ''
+ if pa.gunner: xs += 'G '
+ else: xs += ' '
xs += timeevent(pa.last_time, pa.last_event)
xs += timeevent(pa.last_chat_time, pa.last_chat_chan)