~kris/9p

disco

fd54dedf833955f38471bf5a5981a64d702671fc — Sean Hinchee 9 years ago 0e15d4a
fixing crash when :g was used, but might have to look into how private channels are used
3 files changed, 9 insertions(+), 4 deletions(-)

M README.md
M commands.go
M main.go
M README.md => README.md +4 -0
@@ 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:


M commands.go => commands.go +4 -3
@@ 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()
}

M main.go => main.go +1 -1
@@ 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]