Thresher 1.2 Class Documentation

Sender.PrivateNotice Method 

Send a notice to a user.

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

Parameters

nick
The target nickname.
message
Text message. If the text is too large to be sent in one piece it will be broken up into smaller strings which will then be sent individually.

Remarks

The difference between a notice and a normal message is that automatic replies must never be sent in response to a notice. This rule applies to servers too - they must not send any error reply back to the client on receipt of a notice. The object of this rule is to avoid loops between clients automatically sending something in response to something it received. See PrivateMessage for possible errors.

Exceptions

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

See Also

Sender Class | Sharkbite.Irc Namespace | OnPrivateNotice