Add GetClientOriginalLanguage (#1810)

Creates a native which will return the language the client connected with.
This commit is contained in:
Corey D
2022-07-28 18:10:51 -07:00
committed by GitHub
parent e5ebd65176
commit 9321229321
5 changed files with 41 additions and 1 deletions
+9
View File
@@ -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.
*