Thresher 1.2 Class Documentation

Sender.PublicNotice Method 

Send a notice to a channel.

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

Parameters

channel
The target channel.
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 PublicMessage for possible errors.

Exceptions

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

See Also

Sender Class | Sharkbite.Irc Namespace | OnPublicNotice