forked from TeamUlysses/ulx
Fix bug with changes to ulx_showmotd cvar not updating correctly in XGUI.
This commit is contained in:
parent
eadbb06196
commit
6cccbbf29a
@ -439,7 +439,7 @@ function plist.motdURLText:UpdateConvarValue()
|
||||
end
|
||||
function plist.motdURLText:OnEnter() self:UpdateConvarValue() end
|
||||
function plist.ConVarUpdated( sv_cvar, cl_cvar, ply, old_val, new_val )
|
||||
if cl_cvar == "ulx_showmotd" then
|
||||
if cl_cvar == "ulx_showMotd" then
|
||||
if tonumber( new_val ) == nil then --MOTD is enabled and set to a URL
|
||||
plist.motdEnabled:SetValue( 1 )
|
||||
plist.motdURLEnabled:SetValue( 1 )
|
||||
|
Loading…
Reference in New Issue
Block a user