summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2025-10-22 19:38:31 -0500
committerraven <citrons@mondecitronne.com>2026-02-09 13:14:04 -0600
commit16961d17db279fcd9376417066e11cf2a28b547d (patch)
tree68e316a09560adbc9a25e2a23471490cc14ba6d6
parent14fe0a31fb1fb1e9ab04dec1c18695a48ad57572 (diff)
require authentication to create channel
-rw-r--r--client/command.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/command.go b/client/command.go
index 59b3a8a..247a8fc 100644
--- a/client/command.go
+++ b/client/command.go
@@ -194,7 +194,9 @@ func (a *application) doCommand(command string, args []string, text string) {
})
return
case "create":
- a.createChannel(text)
+ if a.authenticated {
+ a.createChannel(text)
+ }
return
case "password":
if text == "" {