chiark / gitweb /
Disembark when we take a job
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 17 May 2009 12:37:59 +0000 (13:37 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 17 May 2009 12:37:59 +0000 (13:37 +0100)
yoweb-scrape

index c3e6d73..947e5e4 100755 (executable)
@@ -706,6 +706,11 @@ class ChatLogTracker:
                m = rm('(\\w+) officer chats, "(.*)"$')
                if m: return chat_metacmd('officer')
 
+               m = rm('Ye accepted the offer to job with ')
+               if m:
+                       self._disembark_myself()
+                       return d('taking-job')
+
                m = rm('Game over\\.  Winners: ([A-Za-z, ]+)\\.$')
                if m:
                        pl = m.group(1).split(', ')
@@ -961,7 +966,7 @@ def do_ship_aid(args, bu):
                s = "%s" % track.myname()
 
                vn = track.vessel()
-               if vn is None: s += " not on a vessel?!"
+               if vn is None: s += " not on a vessel"
                else: s += " on board the %s" % vn
                s += " at %s\n" % time.strftime("%Y-%m-%d %H:%M:%S")