chiark / gitweb /
show gunning; bugfix to crew-of
[ypp-sc-tools.main.git] / yoweb-scrape
index 3e77ffdec575e95e48368ffbbb195ca6711d6bbe..a12ea2307b99524e667739b9a814d80231e47d89 100755 (executable)
@@ -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)