Thresher 1.2 Class Documentation

Sender.PrivateMessage Method 

Send a message to a user.

[Visual Basic]
Public Sub PrivateMessage( _
   ByVal nick As String, _
   ByVal message As String _
)
[C#]
public void PrivateMessage(
   string nick,
   string message
);

Parameters

nick
The target user.
message
A message. If the message is too long it will be broken up into smaller piecese which will be sent sequentially.

Remarks

If the target user status is away, the OnAway event will be called along with the away message if any.

Possible Errors

Exceptions

Exception TypeCondition
ArgumentExceptionIf the nickname is not valid or if the message is null or empty.

See Also

Sender Class | Sharkbite.Irc Namespace | OnPrivate