|
|
|
|
1680
|
|
1680
|
|
1681
|
// LUSERS [ <mask> [ <target> ] ]
|
1681
|
// LUSERS [ <mask> [ <target> ] ]
|
1682
|
func lusersHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
1682
|
func lusersHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
1683
|
- //TODO(vegax87) Fix Unknown connections,network statistics and additional parameters
|
|
|
|
|
1683
|
+ //TODO(vegax87) Fix network statistics and additional parameters
|
1684
|
var totalcount int
|
1684
|
var totalcount int
|
1685
|
var invisiblecount int
|
1685
|
var invisiblecount int
|
1686
|
var opercount int
|
1686
|
var opercount int
|
|
|
|
|
1705
|
}
|
1705
|
}
|
1706
|
client.Send(nil, server.name, RPL_LUSERCLIENT, client.nick, fmt.Sprintf("There are %d users and %d invisible on %d server(s)", totalcount, invisiblecount, 1))
|
1706
|
client.Send(nil, server.name, RPL_LUSERCLIENT, client.nick, fmt.Sprintf("There are %d users and %d invisible on %d server(s)", totalcount, invisiblecount, 1))
|
1707
|
client.Send(nil, server.name, RPL_LUSEROP, client.nick, fmt.Sprintf("%d operators online", opercount))
|
1707
|
client.Send(nil, server.name, RPL_LUSEROP, client.nick, fmt.Sprintf("%d operators online", opercount))
|
1708
|
- client.Send(nil, server.name, RPL_LUSERUNKNOWN, client.nick, "X unknown connection(s)") //placeholder
|
|
|
1709
|
client.Send(nil, server.name, RPL_LUSERCHANNELS, client.nick, fmt.Sprintf("%d channels formed", chancount))
|
1708
|
client.Send(nil, server.name, RPL_LUSERCHANNELS, client.nick, fmt.Sprintf("%d channels formed", chancount))
|
1710
|
client.Send(nil, server.name, RPL_LUSERME, client.nick, fmt.Sprintf("I have %d clients and %d servers", totalcount, 1))
|
1709
|
client.Send(nil, server.name, RPL_LUSERME, client.nick, fmt.Sprintf("I have %d clients and %d servers", totalcount, 1))
|
1711
|
return false
|
1710
|
return false
|