From: Ian Jackson Date: Sat, 16 May 2009 19:03:19 +0000 (+0100) Subject: show gunning; bugfix to crew-of X-Git-Tag: 1.0~54 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=43eafe58b254688e67d54aab0ff773c4867159ba show gunning; bugfix to crew-of --- diff --git a/yoweb-scrape b/yoweb-scrape index 3e77ffd..a12ea23 100755 --- a/yoweb-scrape +++ b/yoweb-scrape @@ -376,6 +376,7 @@ def do_pirate(pirates, bu): 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): @@ -725,6 +726,8 @@ def do_ship_aid(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)