From: Ian Jackson Date: Sun, 17 May 2009 12:37:59 +0000 (+0100) Subject: Disembark when we take a job X-Git-Tag: 1.0~29 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=36ef2485fc1765b20293197fd1a0d52054297204 Disembark when we take a job --- diff --git a/yoweb-scrape b/yoweb-scrape index c3e6d73..947e5e4 100755 --- a/yoweb-scrape +++ b/yoweb-scrape @@ -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")