Skip to content

Infraction mod-log improvements#2036

Merged
ChrisLovering merged 1 commit into
mainfrom
fix-bot-2034
Jan 2, 2022
Merged

Infraction mod-log improvements#2036
ChrisLovering merged 1 commit into
mainfrom
fix-bot-2034

Conversation

@TizzySaurus
Copy link
Copy Markdown
Contributor

@TizzySaurus TizzySaurus commented Jan 1, 2022

Closes #2034.

Improvements:

  • Updated the text in a log.trace to be less misleading
  • Infraction edit mod-logs now display the infraction id
  • Infraction applied mod-logs now have the previously missing colon (:)
  • Edited some code to use the defined infraction id variables, rather than re-indexing the dictionary.

The below image shows the mod-logs for applying a mute, editing the mute reason & duration, and finally removing the mute:
image.png

- Add infraction id to infraction edit modlog
- Add missing colon in "infraction applied" message
- Utilise defined infraction id variable instead of indexing dict again
@TizzySaurus TizzySaurus added a: frontend Related to output and formatting a: moderation Related to community moderation functionality: (moderation, defcon, verification) p: 3 - low Low Priority t: enhancement Changes or improvements to existing features s: needs review Author is waiting for someone to review and approve labels Jan 1, 2022
Copy link
Copy Markdown
Contributor

@kosayoda kosayoda left a comment

Choose a reason for hiding this comment

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

LGTM, works as expected.

@Xithrius Xithrius requested review from ChrisLovering and removed request for Den4200 and ks129 January 2, 2022 20:09
@ChrisLovering ChrisLovering merged commit 73c0864 into main Jan 2, 2022
@ChrisLovering ChrisLovering deleted the fix-bot-2034 branch January 2, 2022 21:38
@Xithrius Xithrius removed the s: needs review Author is waiting for someone to review and approve label Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: frontend Related to output and formatting a: moderation Related to community moderation functionality: (moderation, defcon, verification) p: 3 - low Low Priority t: enhancement Changes or improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add infraction ID to the #mod-log entry when the infraction is edited

4 participants