Make token available to Lua as a global variable

Reviewed by @RedEnchilada
This commit is contained in:
wolfy852 2016-06-01 21:06:24 -05:00
parent 5c24efac21
commit 919e3ed0e2

View file

@ -8276,6 +8276,9 @@ static inline int lib_getenum(lua_State *L)
} else if (fastcmp(word,"VERSIONSTRING")) {
lua_pushstring(L, VERSIONSTRING);
return 1;
} else if (fastcmp(word, "token")) {
lua_pushinteger(L, token);
return 1;
}
return 0;