summaryrefslogtreecommitdiff
path: root/client/command.go
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-01 16:01:59 -0500
committercitrons <citrons@mondecitronne.com>2025-06-01 16:01:59 -0500
commit7f702eaf6b091feaa8d59ae7320f6c68f5f03d2c (patch)
tree0520b3ff39496a9badf03d9ac0c6f368f1a28731 /client/command.go
parent7b7e086718e65f7289e1c026e6ea6f49d4a506c9 (diff)
leaving channels
Diffstat (limited to 'client/command.go')
-rw-r--r--client/command.go8
1 files changed, 8 insertions, 0 deletions
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 {