if cmd == 'a': each = self._onboard_event
elif cmd == 'd': each = disembark
- else: each = lambda v,ts,tt,h: self._onboard_event(
- None,ts,tt,h, jobber='applied')
+ else: each = lambda *l: self._onboard_event(*l,
+ **{'jobber':'applied'})
if cmdr == self._myself.name:
dml.append('self')
dml.append('other')
how = 'cmd: %s %s' % (cmd,cmdr)
- v = self._find_matching_vessel(
- pattern, timestamp, cmdr, dml, create=True)
+ if cmd == 'j':
+ if pattern is not None:
+ return chat(chan)
+ v = None
+ else:
+ v = self._find_matching_vessel(
+ pattern, timestamp, cmdr,
+ dml, create=True)
- if v is not None:
+ if cmd == 'j' or v is not None:
targets = targets.strip().split(' ')
dml.append(`len(targets)`)
for target in targets: