SendProtocolMessage MethodSendProtocolMessage Method*
*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

objectRequired. An object expression that evaluates to an MsChatPr control.
TextMessageRequired. 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 + vbCrLf

2. List servers linked to the server:

MsChatPr1.SendProtocolMessage "LINKS" + vbCrLf

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.