Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Staff join messages not redirecting [skip ci] #2369

Merged
merged 1 commit into from Mar 15, 2024
Merged

Conversation

DonkeyBlaster
Copy link
Member

@DonkeyBlaster DonkeyBlaster commented Mar 15, 2024

Probably merge just before scrolling

@DonkeyBlaster DonkeyBlaster changed the title fix: Staff join messages not redirecting fix: Staff join messages not redirecting [Skip ci] Mar 15, 2024
@DonkeyBlaster DonkeyBlaster changed the title fix: Staff join messages not redirecting [Skip ci] fix: Staff join messages not redirecting [skip ci] Mar 15, 2024
@JamieCallan117
Copy link
Contributor

Looks good, not sure if we want to add more test cases for the other ranks, I have all(?) the characters used for each but not the colour code so we might not be able to make them 100% accurate

Admin ""
Artist ""
Builder ""
CMD ""
Dev ""
GM ""
Hybrid ""
Item ""
Media ""
Owner ""
QA ""
Web ""

@DonkeyBlaster
Copy link
Member Author

They're in the enum as well, but I don't want to add "fake" test cases we created. The ones we have now are copied from the game

@JamieCallan117
Copy link
Contributor

Ah, I didn't notice the enum. Best to keep the test cases as real examples then

@DonkeyBlaster DonkeyBlaster added this pull request to the merge queue Mar 15, 2024
@@ -216,6 +216,10 @@ public void ChatRedirectFeature_LoginRedirector_FOREGROUND_PATTERN() {
p.shouldMatch("\uE023 §#44aa3300v8j§a has just logged in!");
// champion nickname
p.shouldMatch("\uE017 §#ffe60000§ocharlie268IsAWizard§6 has just logged in!");
// moderator nickname, new style
p.shouldMatch("\uE01F §6§o§<1>Navi§e has just logged in!");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we using INCLUDE_EVENTS here? Does the method even use that for getting the string? (If so , why?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wdym?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&<1> is an event (clickable or hoverable, I don't remember). I am asking why this method is matching clickable events, as we never do this, and only use regular MC-styles.

Merged via the queue into main with commit ac9998e Mar 15, 2024
1 check passed
@DonkeyBlaster DonkeyBlaster deleted the redirectfix branch March 15, 2024 15:21
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.

None yet

4 participants