summaryrefslogtreecommitdiff
path: root/client/command.go
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-01 19:19:04 -0500
committercitrons <citrons@mondecitronne.com>2025-06-01 19:19:04 -0500
commita69d4d6bd2e9c91a8c9925610b46922d58eda493 (patch)
tree5908fe8ab6d1116522771d60d5bb6e513817690a /client/command.go
parent335f57fbc8403b32b5e3d8ea1cb1b713cdacb5fc (diff)
rename channel
Diffstat (limited to 'client/command.go')
-rw-r--r--client/command.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/command.go b/client/command.go
index 101a5aa..3dc3d26 100644
--- a/client/command.go
+++ b/client/command.go
@@ -79,6 +79,15 @@ func (a *application) doCommand(command string, args []string, text string) {
win.(*channelWindow).leaveChannel()
}
a.currentWindow = cmdWindowLocation {}
+ case "rename":
+ if !argN(1) {
+ break
+ }
+ win := a.windowCache.Get(a.currentWindow)
+ switch win.(type) {
+ case *channelWindow:
+ win.(*channelWindow).renameChannel(args[0])
+ }
case "list":
if !argN(0) {
break