mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-26 13:59:44 +01:00
removed Unknown connections
This commit is contained in:
parent
b4427fa782
commit
750f0ffcb6
@ -1680,7 +1680,7 @@ func whowasHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
|||||||
|
|
||||||
// LUSERS [ <mask> [ <target> ] ]
|
// LUSERS [ <mask> [ <target> ] ]
|
||||||
func lusersHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
func lusersHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
||||||
//TODO(vegax87) Fix Unknown connections,network statistics and additional parameters
|
//TODO(vegax87) Fix network statistics and additional parameters
|
||||||
var totalcount int
|
var totalcount int
|
||||||
var invisiblecount int
|
var invisiblecount int
|
||||||
var opercount int
|
var opercount int
|
||||||
@ -1705,7 +1705,6 @@ func lusersHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
|||||||
}
|
}
|
||||||
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))
|
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))
|
||||||
client.Send(nil, server.name, RPL_LUSEROP, client.nick, fmt.Sprintf("%d operators online", opercount))
|
client.Send(nil, server.name, RPL_LUSEROP, client.nick, fmt.Sprintf("%d operators online", opercount))
|
||||||
client.Send(nil, server.name, RPL_LUSERUNKNOWN, client.nick, "X unknown connection(s)") //placeholder
|
|
||||||
client.Send(nil, server.name, RPL_LUSERCHANNELS, client.nick, fmt.Sprintf("%d channels formed", chancount))
|
client.Send(nil, server.name, RPL_LUSERCHANNELS, client.nick, fmt.Sprintf("%d channels formed", chancount))
|
||||||
client.Send(nil, server.name, RPL_LUSERME, client.nick, fmt.Sprintf("I have %d clients and %d servers", totalcount, 1))
|
client.Send(nil, server.name, RPL_LUSERME, client.nick, fmt.Sprintf("I have %d clients and %d servers", totalcount, 1))
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user