summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2025-10-22 23:51:17 -0500
committerraven <citrons@mondecitronne.com>2026-02-09 13:14:04 -0600
commitd57467f12a97b1ca5a2dda2435b5a4d47ff73443 (patch)
tree2a1d8693e8342dfb902f6c871af330d542151b9e
parent16961d17db279fcd9376417066e11cf2a28b547d (diff)
fix "unknown command"
-rw-r--r--client/command.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/command.go b/client/command.go
index 247a8fc..ea3acb6 100644
--- a/client/command.go
+++ b/client/command.go
@@ -76,7 +76,7 @@ func (a *application) doCommand(command string, args []string, text string) {
hm, ok = getHelp("")
} else {
if !argN(1) {
- break
+ return
}
cmd = args[0]
if cmd[0] == '/' {
@@ -108,7 +108,7 @@ func (a *application) doCommand(command string, args []string, text string) {
cl := a.channelList.findName(text)
if cl.id != "" {
a.goTo(cl)
- break
+ return
}
if a.authenticated {
a.join(text)