Skip to content

Fixed console purges with a radius purging all worlds - #1026

Open
tonyjamesstark wants to merge 1 commit into
PlayPro:masterfrom
tonyjamesstark:fix-console-radius-purge
Open

tonyjamesstark wants to merge 1 commit into
PlayPro:masterfrom
tonyjamesstark:fix-console-radius-purge

Conversation

@tonyjamesstark

Copy link
Copy Markdown

From the console, /co purge t:30d r:50 purges the whole server. Upstream rejects a numeric radius in purges, but the radius parser returns null when the sender has no location, so the rejection never fires. The world also parses as 0 (every world), so the purge runs server-wide.

Fix: the radius is also parsed against a placeholder location, so the existing rejection now applies to every sender. r:#world is unaffected. The change is two lines in PurgeCommand and does not depend on any other PR.

To reproduce: run /co purge t:30d r:50 from the console. Before the fix, it starts a #global purge. After the fix, it answers "Please specify a valid world."

authored and verified with claude

/co purge rejects a numeric radius, but the check only saw the radius
when the sender had a location. From the console, /co purge t:30d r:50
parsed no radius and no world, so it ran as a server-wide purge. The
radius is now also parsed against a placeholder location, so it is
rejected for every sender. r:#world is unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PdEuKbjcVoVinVQJq4te1f
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.

2 participants