summaryrefslogtreecommitdiff
path: root/client/channel_window.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/channel_window.go')
-rw-r--r--client/channel_window.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/client/channel_window.go b/client/channel_window.go
index b4c9b9f..f9ed5a8 100644
--- a/client/channel_window.go
+++ b/client/channel_window.go
@@ -112,6 +112,20 @@ func (cw *channelWindow) leaveChannel() {
globalApp.windowCache.Evict(cw.location)
}
+func (cw *channelWindow) renameChannel(newName string) {
+ ch := proto.Object {
+ "channel", cw.location.id, map[string]string {"": newName},
+ }
+ globalApp.sendUpdate(ch, func(response proto.Command) {
+ if response.Kind == "fail" {
+ if len(response.Args) > 0 {
+ f := proto.Fail(response.Args[0])
+ globalApp.cmdWindow.err(f.Error())
+ }
+ }
+ })
+}
+
func (cw *channelWindow) loadMoreHistory() {
if cw.loadingHistory || cw.endOfHistory {
return