chatTranslateNick

GameSpy SDK

chatTranslateNick

Removes the namespace extension from a nickname.  Use this when working with unique nicknames in a public chat room.

const gsi_char * chatTranslateNick(
gsi_char * nick,
const gsi_char * extension );
RoutineRequired HeaderDistribution
chatTranslateNick<chat.h>SDKZIP

Return Value

Returns the nickname, stripped of the namespace identifier.

Parameters

nick
[in] Current nickname.
extension
[in] Game extension; will be removed from the nickname. Assigned by GameSpy.

Remarks

Nicknames that are registered in a game’s namespace will include an indentifying extension, such as "-gspy".  This extension should not be displayed to the user, but should be stripped before display.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
chatTranslateNickchatTranslateNickAchatTranslateNickW

chatTranslateNickW and chatTranslateNickA are UNICODE and ANSI mapped versions of chatTranslateNick. The arguments of chatTranslateNickA are ANSI strings; those of chatTranslateNickW are wide-character strings.

Section Reference: Gamespy Chat SDK