Thresher 1.2 Class Documentation

Sender.Nick Method 

Change the user's nickname.

[Visual Basic]
Public Sub Nick( _
   ByVal newNick As String _
)
[C#]
public void Nick(
   string newNick
);

Parameters

newNick
The new nickname

Remarks

Possible Errors

Exceptions

Exception TypeCondition
ArgumentExceptionIf the nickname is not valid.

Example

            //Make sure and verify that the nick is valid and of the right length
            string nick = GetUserInput();
            if( Rfc2812Util.IsValidNick( connection, nick) ) { 
            connection.Sender.Nick( nick );
            }
            

See Also

Sender Class | Sharkbite.Irc Namespace | OnNick