Fix crash bug.

This commit is contained in:
Andrey Petrov 2014-12-16 14:29:45 -08:00
parent ee28f8c613
commit b90017bfe6
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
host_key
host_key.pub
ssh-chat
*.log

View File

@ -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