mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-08 19:32:17 +03:00
Fix crash bug.
This commit is contained in:
parent
ee28f8c613
commit
b90017bfe6
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
host_key
|
host_key
|
||||||
host_key.pub
|
host_key.pub
|
||||||
ssh-chat
|
ssh-chat
|
||||||
|
*.log
|
||||||
|
@ -94,7 +94,7 @@ func (c *Client) ColoredName() string {
|
|||||||
|
|
||||||
// SysMsg sends a message in continuous format over the message channel
|
// SysMsg sends a message in continuous format over the message channel
|
||||||
func (c *Client) SysMsg(msg string, args ...interface{}) {
|
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
|
// Write writes the given message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user