1
0
mirror of https://github.com/shazow/ssh-chat.git synced 2025-08-19 15:33:39 +03:00

Alias /names to /list, closes

This commit is contained in:
Andrey Petrov 2014-12-14 19:51:47 -08:00
parent a7a2173c3f
commit 807b650f99

@ -255,7 +255,7 @@ func (c *Client) handleShell(channel ssh.Channel) {
} else { } else {
c.SysMsg("Missing $NAME from: /whois $NAME") c.SysMsg("Missing $NAME from: /whois $NAME")
} }
case "/list": case "/names", "/list":
names := "" names := ""
nameList := c.Server.List(nil) nameList := c.Server.List(nil)
for _, name := range nameList { for _, name := range nameList {