chatFixNick
Repairs an illegal chat nickname.
- void chatFixNick(
- gsi_char * newNick,
- const gsi_char * oldNick );
Routine | Required Header | Distribution |
---|---|---|
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
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
chatFixNick | chatFixNickA | chatFixNickW |
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