From 7f702eaf6b091feaa8d59ae7320f6c68f5f03d2c Mon Sep 17 00:00:00 2001 From: citrons Date: Sun, 1 Jun 2025 16:01:59 -0500 Subject: leaving channels --- client/command.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/command.go') diff --git a/client/command.go b/client/command.go index f505f9a..6727114 100644 --- a/client/command.go +++ b/client/command.go @@ -65,6 +65,14 @@ func (a *application) doCommand(command string, args []string, text string) { if a.authenticated { a.join(args[0]) } + case "leave": + argN(0) + win := a.windowCache.Get(a.currentWindow) + switch win.(type) { + case *channelWindow: + win.(*channelWindow).leaveChannel() + } + a.currentWindow = cmdWindowLocation {} case "create": argN(1) if a.authenticated { -- cgit v1.2.3