mirror of
https://github.com/shazow/ssh-chat.git
synced 2026-10-25 01:06:20 +03:00
List formatting.
This commit is contained in:
1 parent
a27ced0c06
commit
f11049d84d
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user