Skip to content

Row 205 S6b: HC /block dialog (Admin/Block, ADMIN_COMMAND 0x04) - #1010

Merged
neeerp merged 1 commit into
masterfrom
v83/gm-block-dialog
Oct 25, 2026
Merged

neeerp merged 1 commit into
masterfrom
v83/gm-block-dialog

Conversation

@neeerp

@neeerp neeerp commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Row 205 S6b: HeavenClient's /block and its GM dialog (report b176).

  • /block NAME DAYS REASON takes exactly three words, matched as typed. REASON is looked up case-sensitively among Etc/BlockReason.img's type values (children 1..N, by number). With no days, or a reason that matches none, nothing opens and only the ADMIN_LOG goes (0x52d9ee, 0x52dc30).
  • Otherwise the Admin/Block dialog (UIGmBlock) opens. It is centred and modal, and shows the name, a days edit (prefilled), a reason combo (all 13 reasons, preselected) and a short-description edit (focused). Like v83's, it doesn't check what is typed.
  • OK or Enter sends ADMIN_COMMAND 0x80 {04, name, reason (combo index + 1), days, description}, which the server from Row 205 S6: blocking accounts (!ban, !unban, !dc, v83 /ban and /block) #1008 handles. Cancel, the close button and Esc close it. Tab switches between the two edits.
  • The docs' GM slash-command table is updated.

Verified: gm_command_tests (build-dbg) passes. GUI against the lane stack:

  • /block Storyb 3 AD with a note blocked the account (DB ban_reason 3, ban_until about +3 days), and the client printed "You have successfully blocked access."
  • /block Storyb 7 bot opened nothing.
  • /block Storyb 7 BOT followed by Esc closed the dialog with nothing blocked.

…img type, as typed; nothing without days or a reason) and its Admin/Block dialog, whose OK sends ADMIN_COMMAND 0x04 {name, reason, days, note}
@neeerp
neeerp merged commit c5e3df8 into master Oct 25, 2026
1 check passed
@neeerp
neeerp deleted the v83/gm-block-dialog branch October 25, 2026 20:31
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