Better defaults handling + better Windows compat.

This commit is contained in:
Mikkel Krautz 2011-05-16 22:58:23 +02:00
parent 2cf093160b
commit fea87b0c13
2 changed files with 47 additions and 31 deletions

4
ctl.go
View file

@ -6,8 +6,6 @@ package main
import (
"log"
"os"
"path/filepath"
"rpc"
"strconv"
)
@ -40,7 +38,7 @@ func GrumbleCtl(args []string) {
sid, _ := strconv.Atoi64(args[1])
client, err := rpc.Dial("unix", filepath.Join(os.Getenv("HOME"), ".grumble", "ctl"))
client, err := rpc.Dial(*ctlnet, *ctladdr)
if err != nil {
log.Fatalf("Could not connect to control socket: %v", err)
}