Skip to content

fix: relay chained /zaap commands - #17

Open
pedroduca wants to merge 1 commit into
Miniluchi:mainfrom
pedroduca:fix/zaap-chain
Open

pedroduca wants to merge 1 commit into
Miniluchi:mainfrom
pedroduca:fix/zaap-chain

Conversation

@pedroduca

@pedroduca pedroduca commented Nov 5, 2026 •

Copy link
Copy Markdown

Closes #20

Problem Ganymède now copies chains such as: /zaap 5 -18 ; /zaap 5 -18 ; /travel 3 -17 parse_zaap only accepted one trailing /travel, so any further /zaap leg was rejected with BadArguments { verb: Zaap } and nothing reached the game. This shows up in the log as command not relayed reason=Unparsed { reason: BadArguments { verb: Zaap } }. ## Change - GameCommand::Zaap now carries a list of legs (Leg::Zaap / Leg::Travel) instead of a single optional /travel. - Any number of ; /zaap x y and ; /travel x y legs are accepted. - The parser stays closed: anything else after a ; (empty segment, other verbs, item names) is still BadArguments, and the 64 character cap still bounds the chain. - Tests updated: the two cases that used to be rejected on purpose are now accepted, plus a new round-trip test with the command above. ## Testing cargo test --workspace (26 core tests pass). Not tested against a live Dofus client. 🤖 Generated with Claude Code

Ganymède now copies chains such as '/zaap 5 -18 ; /zaap 5 -18 ; /travel 3 -17'.
The parser only accepted one trailing /travel, so any other leg was rejected
with BadArguments. Accept any number of '; /zaap x y' and '; /travel x y' legs.
Anything else after a ';' is still refused, and the 64 character cap still
bounds the chain.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chained /zaap commands are not relayed

1 participant