Skip to content

Commit

Permalink
Fixed GetGameDescription returning base instead of real value.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielga committed Mar 3, 2018
1 parent ac5876b commit f9481ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions include/modules/serversecure.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ require("serversecure.core")

local format, match, band, rshift = string.format, string.match, bit.band, bit.rshift

serversecure.Version = "serversecure 1.5.19"
serversecure.VersionNum = 10519

function serversecure.IPToString(uint)
if not uint then
return
Expand Down Expand Up @@ -32,3 +35,7 @@ function serversecure.PostInitialize()
print("[ServerSecure] serversecure.PostInitialize is deprecated since it's not needed anymore!")
return true
end

hook.Add("Initialize", "serversecure.FixGameDescription", function()
serversecure.RefreshInfoCache()
end)
7 changes: 0 additions & 7 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@ namespace global

LUA->CreateTable( );

LUA->PushString( "serversecure 1.5.18" );
LUA->SetField( -2, "Version" );

// version num follows LuaJIT style, xxyyzz
LUA->PushNumber( 10518 );
LUA->SetField( -2, "VersionNum" );

LUA->PushCFunction( GetClientCount );
LUA->SetField( -2, "GetClientCount" );
}
Expand Down

0 comments on commit f9481ce

Please sign in to comment.