Fix crash bug.

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

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
host_key
host_key.pub
ssh-chat
*.log
+1 -1
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