summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)