Repository navigation
Row 205: v83 GM slash commands + HC ADMIN_RESULT and GmCommands - #1007
Merged
Merged
Conversation
… GM_SLIDE 0x86, 0x80 0x1E warn) and HC's ADMIN_RESULT handler and GmCommands, by v83's rank ladder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Row 205: the v83 client's own GM slash commands, on both the client and the server (report b175).
Server
E1 scope, E1 type, Str text. Scope is 0 world, 1 channel, 2 map; type is 0 notice, 1 alert, 4 slide. It becomes a BROADCAST_MSG to that scope. A slide with no text takes the slide down (build_slide). GM tier./w NAME MSG): an alert to NAME on any channel, and ADMIN_RESULT 0x1E 1 or 0 to the GM. Helper tier.gm_audit. 0x86 (/slideax) is accepted and does nothing.HeavenClient
AdminResult), read as v83's FUN_005352e9 does:AccountGrade::rank()follows FUN_0052f031. The GM commands are read only for grade bit 0 or a sub-grade of 0x20, 0x40 or 0x80, before the players' commands (GmCommand::parseandGmCommands::run, hooked into UIChatBar). Commands by rank:/h N;/ch N,/u,/w NAME MSG,/ban NAMEand/uclip;/alert*,/notice*and/slide*commands (with/alertmand/noticem) and/slideax./flag,/block's dialog,/c,/clip. The server ignores/u,/uclipand/banfor now;/banis planned with the discipline commands.Tests
admin_command(net).admin_result_tests,gm_command_testsandaccount_grade_tests(build-dbg).gm_slash, a GM's notice and warning reaching a player, and a player's being ignored.gm_commandsalso passes.