From e28813de7faf43b728cf1e901c252f9e3e2d13c4 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Thu, 27 May 2021 12:01:55 -0500 Subject: [PATCH] Added console message for when VScript documentation is requested while it's disabled --- sp/src/vscript/vscript_squirrel.nut | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sp/src/vscript/vscript_squirrel.nut b/sp/src/vscript/vscript_squirrel.nut index f87aad96..7c6a421e 100644 --- a/sp/src/vscript/vscript_squirrel.nut +++ b/sp/src/vscript/vscript_squirrel.nut @@ -348,7 +348,10 @@ local function PrintMatchesInDocList(pattern, list, printfunc) function __Documentation::PrintHelp(pattern = "*") { if ( !developer ) + { + printdocl("Documentation is not enabled. To enable documentation, restart the server with the 'developer' cvar set to 1 or higher."); return + } local patternLower = pattern.tolower();