From b90017bfe6f96252e9db96bb972d27f2c7246a66 Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Tue, 16 Dec 2014 14:29:45 -0800 Subject: [PATCH] Fix crash bug. --- .gitignore | 1 + client.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1bec925..6207059 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ host_key host_key.pub ssh-chat +*.log diff --git a/client.go b/client.go index 1a6a795..3e0290d 100644 --- a/client.go +++ b/client.go @@ -94,7 +94,7 @@ func (c *Client) ColoredName() string { // SysMsg sends a message in continuous format over the message channel func (c *Client) SysMsg(msg string, args ...interface{}) { - c.Msg <- ContinuousFormat(systemMessageFormat, "-> "+fmt.Sprintf(msg, args...)) + c.Send(ContinuousFormat(systemMessageFormat, "-> "+fmt.Sprintf(msg, args...))) } // Write writes the given message