Contents Index Topic Contents | ||
Previous Topic: SendPrivateMessage Method Next Topic: SetAway Method |
SendProtocolMessage Method
Sends a text message directly to the server.
Syntax
object.SendProtocolMessage TextMessage
Parameters
object Required. An object expression that evaluates to an MsChatPr control. TextMessage Required. A string containing the text message. Remarks
This method enables the user to use an IRC/IRCX command even if the command is not exposed by the MsChatPr control. The returned messages from the server might not be understood by the control and therefore be exposed to the user through the OnProtocolMessage event.
Examples
1. The user wants to become a system operator. This operation is not exposed by the protocol control:
MsChatPr1.SendProtocolMessage "OPER " + MsChatPr1.Nickname + " " + strPassword + vbCrLf2. List servers linked to the server:
MsChatPr1.SendProtocolMessage "LINKS" + vbCrLf
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.