chatLeaveChannel

GameSpy SDK

chatLeaveChannel

Leave a chat channel.

void chatLeaveChannel(
CHAT chat,
const gsi_char * channel,
const gsi_char * reason );
RoutineRequired HeaderDistribution
chatLeaveChannel<chat.h>SDKZIP

Parameters

chat
[in] Chat SDK object, previously initialized using one of the chatConnect methods.
channel
[in] Name of the chat channel being left.
reason
[in] Optional reason for leaving.  This may be displayed to the remaining users.

Remarks

The chatLeaveChannel function is used to remove the local client from a chat channel.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
chatLeaveChannelchatLeaveChannelAchatLeaveChannelW

chatLeaveChannelW and chatLeaveChannelA are UNICODE and ANSI mapped versions of chatLeaveChannel. The arguments of chatLeaveChannelA are ANSI strings; those of chatLeaveChannelW are wide-character strings.

Section Reference: Gamespy Chat SDK

See Also: ChatConnect, ChatDisconnect