chatFixNick

GameSpy SDK

chatFixNick

Repairs an illegal chat nickname.

void chatFixNick(
gsi_char * newNick,
const gsi_char * oldNick );
RoutineRequired HeaderDistribution
chatFixNick<chat.h>SDKZIP

Parameters

newNick
[out] Receives corrected nickname; may be identical to original nickname if no issues are detected.
oldNick
[in] Nickname to be corrected or verified.

Remarks

The chatFixNick function replaces illegal characters in the nickname with the underscore ("_") character.  This function will also replace leading numbers and illegal whitespace combinations.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
chatFixNickchatFixNickAchatFixNickW

chatFixNickW and chatFixNickA are UNICODE and ANSI mapped versions of chatFixNick. The arguments of chatFixNickA are ANSI strings; those of chatFixNickW are wide-character strings.

Section Reference: Gamespy Chat SDK

See Also: ChatConnect, ChatDisconnect