mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-15 08:30:36 +03:00
List formatting.
This commit is contained in:
parent
a27ced0c06
commit
f11049d84d
@ -125,7 +125,7 @@ func (c *Client) handleShell(channel ssh.Channel) {
|
|||||||
}
|
}
|
||||||
case "/list":
|
case "/list":
|
||||||
names := c.Server.List(nil)
|
names := c.Server.List(nil)
|
||||||
c.Msg <- fmt.Sprintf("-> %d connected: %s", len(names), strings.Join(names, ","))
|
c.Msg <- fmt.Sprintf("-> %d connected: %s", len(names), strings.Join(names, ", "))
|
||||||
default:
|
default:
|
||||||
c.Msg <- fmt.Sprintf("-> Invalid command: %s", line)
|
c.Msg <- fmt.Sprintf("-> Invalid command: %s", line)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user