Thresher 1.2 Class Documentation

Sender.ChangeUserMode Method 

Changes this client's mode. To change another nick's mode use ChangeChannelMode.

[Visual Basic]
Public Sub ChangeUserMode( _
   ByVal action As ModeAction, _
   ByVal mode As UserMode _
)
[C#]
public void ChangeUserMode(
   ModeAction action,
   UserMode mode
);

Parameters

action
Add or remove a mode.
mode
The mode to be changed.

Remarks

Away cannot be set here but should be set using Away or removed using UnAway.

Exceptions

Exception TypeCondition
ArgumentExceptionIf the UserMode parameter is Away.

Example

            //Turn off invisibility
            connection.Sender.ChangeUserMode( ModeAction.Remove, UserMode.Invisible );
            //Turn on wallops (and get a lot of IRC garbage)
            connection.Sender.ChangeUserMode( ModeAction.Add, UserMode.Wallops );
            

See Also

Sender Class | Sharkbite.Irc Namespace | OnUserModeChange