Fix crash bug.
This commit is contained in:
parent
ee28f8c613
commit
b90017bfe6
|
@ -1,3 +1,4 @@
|
|||
host_key
|
||||
host_key.pub
|
||||
ssh-chat
|
||||
*.log
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue