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 _
)
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
- ERR_NORECIPIENT
- ERR_NOTEXTTOSEND
- ERR_NOSUCHNICK
Exceptions
Exception Type | Condition |
---|
ArgumentException | If the nickname is not valid or if the message is null or empty. |
See Also
Sender Class | Sharkbite.Irc Namespace | OnPrivate