diff options
Diffstat (limited to 'client/command.go')
| -rw-r--r-- | client/command.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/command.go b/client/command.go index 5ceb45b..64f8cd8 100644 --- a/client/command.go +++ b/client/command.go @@ -179,9 +179,14 @@ func (a *application) doCommand(command string, args []string, text string) { }) return case "create": - if a.authenticated { - a.createChannel(text) + a.createChannel(text) + return + case "password": + if text == "" { + a.cmdWindow.err("password cannot be empty") + return } + a.pushPrompt(&passwordChangePrompt {password: text}) return case "debug": a.goTo(debugWindowLocation{}) |
