Thresher 1.2 Class Documentation

Sender.Who Method 

Request a list of users who match a given query.

[Visual Basic]
Public Sub Who( _
   ByVal mask As String, _
   ByVal operatorsOnly As Boolean _
)
[C#]
public void Who(
   string mask,
   bool operatorsOnly
);

Parameters

mask
The mask passed to Who is matched against a users' host, real name or nickname. It uses the wildcard system of matching where the '*' can stand for any number of characters and '?' stands for any single character. The query will only match against one component so it is not possible to match against both nick and host for example.
operatorsOnly
True if the query should only try to match the mask to users designated operators.

Remarks

Possible Errors

Exceptions

Exception TypeCondition
ArgumentExceptionIf the mask is null,empty, or too long.

Example

            //Find all users from Russia, i.e. who have .ru in their hostnames
            connection.Sender.Who("*.ru", false );
            //Find all users from clan [DX], i.e. have '[DX]' in their nick
            connection.Sender.Who("[DX]*", false );
            

See Also

Sender Class | Sharkbite.Irc Namespace | OnWho