summaryrefslogtreecommitdiff
path: root/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands.go')
-rw-r--r--commands.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/commands.go b/commands.go
index 437bf77..a0cd411 100644
--- a/commands.go
+++ b/commands.go
@@ -197,7 +197,11 @@ func commandDoHelp(app *App, buffer string, args []string) (err error) {
}
func commandDoJoin(app *App, buffer string, args []string) (err error) {
- app.s.Join(args[0])
+ key := ""
+ if len(args) == 2 {
+ key = args[1]
+ }
+ app.s.Join(args[0], key)
return
}