Thresher 1.2 Class Documentation

Sender.Kick Method 

Kick a user off a channel.

[Visual Basic]
Public Sub Kick( _
   ByVal channel As String, _
   ByVal reason As String, _
   ParamArray nicks As String() _
)
[C#]
public void Kick(
   string channel,
   string reason,
   params string[] nicks
);

Parameters

channel
Which channel to kick the user from.
reason
Why.
nicks
One or more users to kick.

Remarks

Possible Replies

Exceptions

Exception TypeCondition
ArgumentExceptionIf the nickname or channel is not valid or the reason is null.

Example

            //Kick a single user
            connection.Sender.Kick("#thresher","No Perl please","lwall" );
            //Kicks several users at once
            connection.Sender.Kick( "#thresher", "Bye", "John","Dick","Harry" );
            

See Also

Sender Class | Sharkbite.Irc Namespace | OnKick