From fd54dedf833955f38471bf5a5981a64d702671fc Mon Sep 17 00:00:00 2001 From: Sean Hinchee Date: Thu, 27 Jul 2017 10:07:05 -0500 Subject: [PATCH] fixing crash when :g was used, but might have to look into how private channels are used --- README.md | 4 ++++ commands.go | 7 ++++--- main.go | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8a3bd56449d0c95497bc5ca30b777f117719f415..c597a4d6dd654f4844836ce36474a9ed70497bb5 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,10 @@ JSON config is in `$home/lib/disco.cfg` for setting password, should be made aut * Cutting and pasting text might break things +* ~~:g switching guilds crashes the client~~ Add private channel switch later + +* You have to verify your e-mail regularly (i guess?) + ## Commands Commands available in chat: diff --git a/commands.go b/commands.go index 622de9a48cbb3fcec136df8c7744084016fa3ef7..84bb0f07be17478f8b4a49eb0ef2646adb512e27 100644 --- a/commands.go +++ b/commands.go @@ -49,9 +49,10 @@ func ParseForCommands(line string) string { func SelectGuild() { State.Enabled = false SelectGuildMenu() - if !State.Channel.IsPrivate { - SelectChannelMenu() - } + /* this causes a segfault, investigate later */ + //if !State.Channel.IsPrivate { + SelectChannelMenu() + //} State.Enabled = true ShowContent() } diff --git a/main.go b/main.go index fc1307505762dcb096b0b8576778f98777254bb3..cba4399bbcdb2082d427f9d936332479859fa6f5 100644 --- a/main.go +++ b/main.go @@ -60,7 +60,7 @@ func main() { //Start Listening reader := bufio.NewReader(os.Stdin) for { - fmt.Print("> ") + //fmt.Print("> ") //line, _ := rl.Readline() line, _ := reader.ReadString('\n') line = line[:len(line)-1]