Skip to content

fix: reply to the caller of sm_pstatus and the in-game-only commands - #115

Merged
Rushaway merged 2 commits into
masterfrom
fix/command-replies
Nov 2, 2026
Merged

Rushaway merged 2 commits into
masterfrom
fix/command-replies

Conversation

@Rushaway

@Rushaway Rushaway commented Nov 2, 2026

Copy link
Copy Markdown
Member

Part of #109, split from #110.

Changes

  • sm_namecolor, sm_clearnamecolor, sm_textcolor, sm_cleartextcolor and sm_toggletag reply "cannot use command from server console" with ReplyToCommand (phrase CCC_NoConsole, like the other in-game-only commands) instead of PrintToServer, so an rcon caller gets the answer.
  • sm_pstatus replies with CReplyToCommand: CPrintToChat fails for the server console.
  • Version 8.1.4.

Checks

  • Builds with spcomp 1.12 and the CI dependencies, no warnings.

🤖 Generated with Claude Code

The color and toggle commands printed "cannot use command from server
console" to the server console with PrintToServer, so an rcon caller got
nothing. sm_pstatus answered with CPrintToChat, which fails for the server
console and prints to chat when used from the client console.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Rushaway
Rushaway merged commit f0922f8 into master Nov 2, 2026
9 checks passed
@Rushaway
Rushaway deleted the fix/command-replies branch November 2, 2026 09:09
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.

1 participant