From 43eafe58b254688e67d54aab0ff773c4867159ba Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 16 May 2009 20:03:19 +0100 Subject: [PATCH 1/1] show gunning; bugfix to crew-of --- yoweb-scrape | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.30.2