forked from TeamUlysses/ulx
Fix for screwed up case on previous commit.
This commit is contained in:
parent
8100b895c1
commit
a3245953fe
@ -44,7 +44,7 @@ asay:help( "Send a message to currently connected admins." )
|
||||
function ulx.tsay( calling_ply, message )
|
||||
ULib.tsay( _, message )
|
||||
|
||||
if ULib.tobool( GetConVarNumber( "ulx_logChat" ) ) then
|
||||
if ULib.toBool( GetConVarNumber( "ulx_logChat" ) ) then
|
||||
ulx.logString( string.format( "(tsay from %s) %s", calling_ply:IsValid() and calling_ply:Nick() or "Console", message ) )
|
||||
end
|
||||
end
|
||||
@ -57,7 +57,7 @@ tsay:help( "Send a message to everyone in the chat box." )
|
||||
function ulx.csay( calling_ply, message )
|
||||
ULib.csay( _, message )
|
||||
|
||||
if ULib.tobool( GetConVarNumber( "ulx_logChat" ) ) then
|
||||
if ULib.toBool( GetConVarNumber( "ulx_logChat" ) ) then
|
||||
ulx.logString( string.format( "(csay from %s) %s", calling_ply:IsValid() and calling_ply:Nick() or "Console", message ) )
|
||||
end
|
||||
end
|
||||
@ -288,7 +288,7 @@ if SERVER then
|
||||
if game.IsDedicated() then
|
||||
Msg( strText .. "\n" ) -- Log to console
|
||||
end
|
||||
if ULib.tobool( GetConVarNumber( "ulx_logChat" ) ) then
|
||||
if ULib.toBool( GetConVarNumber( "ulx_logChat" ) ) then
|
||||
ulx.logString( strText )
|
||||
end
|
||||
|
||||
|
@ -59,7 +59,7 @@ function ulx.voteCallback( ply, command, argv )
|
||||
return
|
||||
end
|
||||
|
||||
local echo = ULib.tobool( GetConVarNumber( "ulx_voteEcho" ) )
|
||||
local echo = ULib.toBool( GetConVarNumber( "ulx_voteEcho" ) )
|
||||
local id = tonumber( argv[ 1 ] )
|
||||
ulx.voteInProgress.results[ id ] = ulx.voteInProgress.results[ id ] or 0
|
||||
ulx.voteInProgress.results[ id ] = ulx.voteInProgress.results[ id ] + 1
|
||||
|
@ -34,7 +34,7 @@ function calcSlots( disconnect )
|
||||
end
|
||||
|
||||
local function updateSlots( ply, disconnect )
|
||||
local visible = ULib.tobool( GetConVarString( "ulx_rslotsVisible" ) )
|
||||
local visible = ULib.toBool( GetConVarString( "ulx_rslotsVisible" ) )
|
||||
if not visible then -- Make sure our visible slots is up to date
|
||||
local slots = calcSlots( disconnect )
|
||||
local max = game.MaxPlayers()
|
||||
@ -48,7 +48,7 @@ local function playerAccess( ply )
|
||||
local mode = GetConVarNumber( "ulx_rslotsMode" )
|
||||
if mode == 0 then return end -- Off!
|
||||
|
||||
local visible = ULib.tobool( GetConVarString( "ulx_rslotsVisible" ) )
|
||||
local visible = ULib.toBool( GetConVarString( "ulx_rslotsVisible" ) )
|
||||
local slots = calcSlots()
|
||||
local cur = #player.GetAll()
|
||||
local max = game.MaxPlayers()
|
||||
|
@ -62,7 +62,7 @@ function ulx.clearVotemaps()
|
||||
end
|
||||
|
||||
function ulx.votemap( calling_ply, map )
|
||||
if not ULib.tobool( GetConVarNumber( "ulx_votemapEnabled" ) ) then
|
||||
if not ULib.toBool( GetConVarNumber( "ulx_votemapEnabled" ) ) then
|
||||
ULib.tsayError( calling_ply, "The votemap command has been disabled by a server admin.", true )
|
||||
return
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user