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

Convert warnings to mutes #519

Merged
merged 7 commits into from Sep 17, 2018
Merged

Conversation

bls1999
Copy link
Collaborator

@bls1999 bls1999 commented Jul 26, 2018

This pull separates chat bans from the player object in favor of a server-logging system (like how kicking works). The difference will be negligible to a normal player, but this will allow us to do a lot more with chat bans than before, as well as abolishing warn evading by logging out and back into an account with an active warning.

In the future, with regards to mutes/warnings, I hope to:

  • Add a chat command that will allow a mod to mute a user for up to a day
  • Add an unwarn chat command (the function is already in fns/client/moderation.php)
  • Move all chat commands to a different php file so they aren't cluttering Player.php

This also fixes a bug with kicking where if a user attempts to log in using a different case as was previously used (i.e. JIGGMIN instead of Jiggmin), the kick doesn't have any effect.

bls1999 and others added 7 commits July 26, 2018 14:47
Sometimes I'd rather just put a @ in front of a variable than rework an entire block of code.
Removes the existing kick (if one is already applied) before applying the new one.
Small fix to the urlify function so links and display text that involve the &jacob-grahn#39; character (apos) will be escaped properly. I'm proclaiming this "the ENT_QUOTES band-aid." This will need to be corrected throughout the rest of the repo, so once these few pending pulls of mine are merged, I'll get started on it (would be too many merge conflicts if I started now).
@bls1999
Copy link
Collaborator Author

bls1999 commented Sep 3, 2018

Travis Status for this branch (idk why it isn't showing on its own): Build Status

@jacob-grahn jacob-grahn merged commit ab4be35 into jacob-grahn:master Sep 17, 2018
@jacob-grahn
Copy link
Owner

👍

@bls1999 bls1999 deleted the muting-system-v1 branch September 17, 2018 12:40
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

2 participants