aboutsummaryrefslogtreecommitdiffstats
path: root/cpp/hi.cpp
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2025-11-15 21:44:53 -0500
committerelioat <elioat@tilde.institute>2025-11-15 21:44:53 -0500
commit392b8ecc1130b8af76aa09769c02920f50b4944f (patch)
treed6b05afffeb90b05a65665ce9d166769fa78c46f /cpp/hi.cpp
parent5533cc83e9e844bc7d173507c0f299d855ee93f6 (diff)
downloadtour-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/hi.cpp')
0 files changed, 0 insertions, 0 deletions