diff --git a/include/modules/serversecure.lua b/include/modules/serversecure.lua index f9f7f24..ba59b42 100644 --- a/include/modules/serversecure.lua +++ b/include/modules/serversecure.lua @@ -2,9 +2,6 @@ require("serversecure.core") local format, match, band, rshift = string.format, string.match, bit.band, bit.rshift -serversecure.Version = "serversecure 1.5.22" -serversecure.VersionNum = 10522 - function serversecure.IPToString(uint) if not uint then return diff --git a/source/main.cpp b/source/main.cpp index d8c44c9..7ee4793 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -61,6 +61,13 @@ namespace global LUA->CreateTable( ); + LUA->PushString( "serversecure 1.5.24" ); + LUA->SetField( -2, "Version" ); + + // version num follows LuaJIT style, xxyyzz + LUA->PushNumber( 10524 ); + LUA->SetField( -2, "VersionNum" ); + LUA->PushCFunction( GetClientCount ); LUA->SetField( -2, "GetClientCount" ); }