diff --git a/core/sm_srvcmds.cpp b/core/sm_srvcmds.cpp index 8771eb78..77cf815d 100644 --- a/core/sm_srvcmds.cpp +++ b/core/sm_srvcmds.cpp @@ -59,6 +59,13 @@ bool RootConsoleMenu::RegisterConCommandBase(ConCommandBase *pCommand) { META_REGCVAR(pCommand); + /* Override values of convars created by SourceMod convar manager if specified on command line */ + const char *cmdLineValue = icvar->GetCommandLineValue(pCommand->GetName()); + if (cmdLineValue && !pCommand->IsCommand()) + { + static_cast(pCommand)->SetValue(cmdLineValue); + } + return true; } diff --git a/core/sourcemm_api.cpp b/core/sourcemm_api.cpp index ea4cdcd7..c2461049 100644 --- a/core/sourcemm_api.cpp +++ b/core/sourcemm_api.cpp @@ -121,5 +121,5 @@ const char *SourceMod_Core::GetDate() const char *SourceMod_Core::GetLogTag() { - return "SRCMOD"; + return "SM"; }