Add GetClientOriginalLanguage (#1810)
Creates a native which will return the language the client connected with.
This commit is contained in:
@@ -99,6 +99,15 @@ native void GetLanguageInfo(int language, char[] code="", int codeLen=0, char[]
|
||||
*/
|
||||
native void SetClientLanguage(int client, int language);
|
||||
|
||||
/**
|
||||
* Retrieves the language number a client had when they connected.
|
||||
*
|
||||
* @param client Client index.
|
||||
* @return Language number client originally had.
|
||||
* @error Invalid client index or client not connected.
|
||||
*/
|
||||
native int GetClientOriginalLanguage(int client);
|
||||
|
||||
/**
|
||||
* Retrieves the language number from a language code.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user