nhexirc / nhex

A next-generation IRC client inspired by HexChat
https://nhexirc.com
19 stars 0 forks source link

Restructure the Rust part #88

Closed TheDaemoness closed 7 months ago

TheDaemoness commented 7 months ago

Requires testing.

Commands are now submitted under one event name, not multiple. Repsonses are returned under multiple event names on success as well as one event name on failure. Updates the TS side to use the new event names.

Moves UserInput and the logic for replying to events to another file, for tidiness. Command dispatch is now handled in one large match statement.

Reduces use of expect overall. There is now a location in the connect function to pass errors back to the frontend now (see TODO).

Changes normal messages to use an empty command name instead of "privmsg".