Merge pull request #69 from Kealper/master

Make /whois ignore any trailing spaces/text.
This commit is contained in:
Andrey Petrov 2014-12-16 12:51:28 -08:00
commit f46490cefb

View File

@ -255,7 +255,7 @@ func (c *Client) handleShell(channel ssh.Channel) {
c.SysMsg("Missing $NAME from: /nick $NAME")
}
case "/whois":
if len(parts) == 2 {
if len(parts) >= 2 {
client := c.Server.Who(parts[1])
if client != nil {
version := reStripText.ReplaceAllString(string(client.Conn.ClientVersion()), "")