mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-15 00:20:37 +03:00
Fix me broadcast.
This commit is contained in:
parent
0c42706d88
commit
da48b9da8a
@ -130,7 +130,7 @@ func (c *Client) handleShell(channel ssh.Channel) {
|
|||||||
if c.IsSilenced() {
|
if c.IsSilenced() {
|
||||||
c.Msg <- fmt.Sprintf("-> Message rejected, silenced.")
|
c.Msg <- fmt.Sprintf("-> Message rejected, silenced.")
|
||||||
} else {
|
} else {
|
||||||
c.Server.Broadcast(msg, c)
|
c.Server.Broadcast(msg, nil)
|
||||||
}
|
}
|
||||||
case "/nick":
|
case "/nick":
|
||||||
if len(parts) == 2 {
|
if len(parts) == 2 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user