mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-13 15:47:17 +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":
|
||||
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:
|
||||
c.Msg <- fmt.Sprintf("-> Invalid command: %s", line)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user