Skip to content

fix: console reply of sm_admins_reloadcfgoverride and config handle leak - #45

Merged
Rushaway merged 3 commits into
masterfrom
fix/audit-followup
Nov 3, 2026
Merged

Rushaway merged 3 commits into
masterfrom
fix/audit-followup

Conversation

@Rushaway

@Rushaway Rushaway commented Nov 1, 2026

Copy link
Copy Markdown
Member

Fixes #44.

Stacked on #43, this plugin's translation PR: merge #43 first. GitHub then retargets this PR to master; refresh it by merging master (overlapping lines: keep this branch's side).

Changes

  • sm_admins_reloadcfgoverride replies with CReplyToCommand, so it works from the server console and rcon.
  • LoadConfigOverride deletes kv before returning when the file is missing.

Checks

  • Builds with spcomp 1.12 and the CI dependencies, no new warnings.
  • smtranslate check --languages en,fr,ru,es,de,pt,chi: 0 errors, 0 warnings.

Rushaway and others added 2 commits November 1, 2026 00:50
Move the hard-coded chat, reply, menu and HUD messages into a phrase file
with en, fr, ru, es, de, pt and chi (srcdslab/.github#5).

Co-Authored-By: WareZ57 <7504466+WareZ57@users.noreply.github.com>
Translation audit follow-up (srcdslab/.github#6).

Co-Authored-By: WareZ57 <7504466+WareZ57@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 1, 2026 10:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the reload-reply and configuration cleanup changes.

No open issues 🎉

What changed in this PR

Fixes #44 by making configuration reload replies work from the server console and rcon, and preventing a handle leak when loading the override configuration fails. Builds on the translations introduced in #43.

Changes:

  • Uses CReplyToCommand for translated reload success and failure messages.
  • Deletes the KeyValues handle before returning on configuration import failure.
  • Bumps the plugin version to 2.1.12.
File Description
addons/​sourcemod/​scripting/​AdvancedAdminList.sp Fixes command replies and failed-load cleanup; updates the version.

Review effort: Balanced

Base automatically changed from feat/translations to master November 1, 2026 11:32
@Rushaway
Rushaway merged commit 4248cef into master Nov 3, 2026
8 checks passed
@Rushaway
Rushaway deleted the fix/audit-followup branch November 3, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sm_admins_reloadcfgoverride errors from the console, and the config loader leaks a handle

2 participants