diff options
| author | elioat <elioat@tilde.institute> | 2025-11-15 21:44:53 -0500 |
|---|---|---|
| committer | elioat <elioat@tilde.institute> | 2025-11-15 21:44:53 -0500 |
| commit | 392b8ecc1130b8af76aa09769c02920f50b4944f (patch) | |
| tree | d6b05afffeb90b05a65665ce9d166769fa78c46f /cpp/life.cpp | |
| parent | 5533cc83e9e844bc7d173507c0f299d855ee93f6 (diff) | |
| download | tour-392b8ecc1130b8af76aa09769c02920f50b4944f.tar.gz | |
Add /quit and /leave commands for graceful shutdown
Users can now type /quit or /leave to gracefully exit the chat:
- Sends ClientLeave message to all peers
- Displays '* user left' message to all connected peers
- Shows 'Goodbye!' to the departing user
This allows proper network cleanup when a peer intentionally leaves.
Without this, peers would only discover the disconnect via heartbeat timeout.
Diffstat (limited to 'cpp/life.cpp')
0 files changed, 0 insertions, 0 deletions