mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-04 09:31:14 +03:00
Alias /names to /list, closes #28
This commit is contained in:
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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user