Repository navigation
Row 205 S6c: !mute and !unmute (the v83 chat block) - #1015
Merged
Merged
Conversation
…ount from chatting the v83 way (accounts.chat_block_reason/until in the login result per b180; the world drops chat, notes, megaphones and the chalkboard till the next login)
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 S6c:
!mute <name> [minutes] [reason]and!unmute <name>(tier 2, GM). This is the client's own chat block (report b180).What v83 does (2025 MapleRoyals client)
Server
accounts.chat_block_reasonandaccounts.chat_block_until.db::account::chat_blockandchat_unblockwrite them, andAccount::chat_blocked_atreads them.!mutedefaults to an hour and reason 1. The reason can be given by number or name (foul,advertising,hack,account,trading,penalty), and the minutes are capped at a year. A second!mutereplaces the first. The usual discipline rank check applies.DirectoryMessage::ChatBlockChanged, with a pink line.net::chat_block::is_chat, and answers with the client's line plus an enable-actions. That also covers the megaphones, Maple TV, kites, notes (Memo items), weather, the chalkboard and avatar megaphones, which the client never refuses.Tests
gm_mutecovers:!unmuteand chat that is seen again;!unmute.gm_jail,gm_ban,local_chat_same_map,whisper_between_two_playersandmegaphonespass. The harness Trace now records CHAT_TEXT.is_chat,mute_reads_its_minutes_and_reasonand the login-result bytes. The net lib passes (1237).