+ return d('chat '+what)
+
+ def chat_metacmd(what):
+ (cmdr, metacmd) = m.groups()
+ metacmd = regexp.sub('\\s+', ' ', metacmd).strip()
+ m2 = regexp.match(
+ '/([ad]) (?:([A-Za-z ]+)\\s*:)?([A-Za-z ]+)$',
+ metacmd)
+ if not m2: return chat(what)
+
+ (cmd, vn, targets) = m2.groups()
+
+ if cmdr == self._myself.name: how = 'manual: /%s' % cmd
+ else: how = '/%s %s' % (cmd,cmdr)
+ if cmd == 'a': each = ob_x
+ else: each = disembark
+
+ if vn is not None:
+ vn = vn.title()
+ if not regexp.match(
+ '(?:.* )?' + vn + '$',
+ self._vessel):
+ return chat('/%s %s:' % (cmd,vn))
+
+ for target in targets.split(' '):
+ if not target: continue
+ each(target.title(), how)
+ return d('/%s' % cmd)