STATS

The STATS command is used to query server statistics.

Server Statistics
Usage: STATS <query> [<target>]
<query> The type of statistics to retrieve.
<target> (Not yet supported) The target server to query.

The following queries are supported:
c Returns a list of servers which the server may connect to or allow connections from.
i Returns a list of hosts which the server allows a client to connect from.
k Returns a list of banned username/hostname combinations for that server.
l Returns a list of the server's connections, showing how long each connection has been established and the traffic over that connection in bytes and messages for each direction.
m Returns a list of commands supported by the server and the usage count for each if the usage count is non zero.
o Returns a list of hosts from which normal clients may become operators.
u Returns a string showing how long the server has been up.
y Returns a list of classes (Client Rules) defined on the server.
z Returns a list of zap lines which block connections with the server.

(See section 4.3.2 of RFC 1459, 3.4.4 of RFC 2812)