Thresher 1.2 Class Documentation

Sender.Lusers Method (String, String)

Request statistics about the size of the IRC network.

[Visual Basic]
Overloads Public Sub Lusers( _
   ByVal hostMask As String, _
   ByVal targetServer As String _
)
[C#]
public void Lusers(
   string hostMask,
   string targetServer
);

Parameters

hostMask
Limits the kinds of servers included in the response by specifiying a hostname string. Can include wildcards.
targetServer
Specifies the server that should process the request. Can be null to indicate that the current server should handle the request. Can include wildcards.

Remarks

Possible Errors

Exceptions

Exception TypeCondition
ArgumentExceptionIf the host mask and server names are too long.

Example

            //Request stats from the current server
            connection.Sender.Lusers();
            //Request stats about all servers ending in '.net' from the current server
            connection.Sender.Lusers("*.net", null );
            //Request stats about all servers ending in '.net' from 'west.gamesnet.net'
            connection.Sender.Lusers("*.net", "west.gamesnet.net");
            

See Also

Sender Class | Sharkbite.Irc Namespace | Sender.Lusers Overload List | OnLusers