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